]> git.mxchange.org Git - friendica-addons.git/commitdiff
Pages: Moved under Networks
authorMichael Vogel <icarus@dabo.de>
Sat, 17 Mar 2012 12:44:13 +0000 (13:44 +0100)
committerMichael Vogel <icarus@dabo.de>
Sat, 17 Mar 2012 12:44:13 +0000 (13:44 +0100)
pages/pages.php

index bc56d2e4e9cafc0642cb1182218652116eee6df1..d0cdc589c71487eeda976e767e71c18f1ad62e5c 100755 (executable)
@@ -82,7 +82,12 @@ function pages_page_end($a,&$b) {
                                $contact["Name"]."</a></li>";
        }
        $pages .= "</ul></div></div>";
-       if (sizeof($contacts) > 0)
-               $a->page['aside'] = $pages.$a->page['aside'];
+       if (sizeof($contacts) > 0) {
+               $pos = strpos($a->page['aside'], '<div id="saved-search-list"');
+               if ($pos > 0) {
+                       $a->page['aside'] = substr($a->page['aside'], 0, $pos).$pages.substr($a->page['aside'], $pos);
+               } else
+                       $a->page['aside'] = $pages.$a->page['aside'];
+       }
 }
 ?>