diff options
author | Michael Vogel <icarus@dabo.de> | 2012-03-11 19:11:25 +0100 |
---|---|---|
committer | Michael Vogel <icarus@dabo.de> | 2012-03-11 19:11:25 +0100 |
commit | 9f76d96d46356b18325ca49c383f94a1958fefd3 (patch) | |
tree | e85ad36d8b515a14f440ab09f62b537b863347ef /addon/pages/pages.php | |
parent | b879a1ddf1575a3bd355edcee634be4a8d179c25 (diff) | |
download | volse-hubzilla-9f76d96d46356b18325ca49c383f94a1958fefd3.tar.gz volse-hubzilla-9f76d96d46356b18325ca49c383f94a1958fefd3.tar.bz2 volse-hubzilla-9f76d96d46356b18325ca49c383f94a1958fefd3.zip |
Cache: item cache now has an autodelete of old files. The pages plugin now sets a link via redirection. So posting works.
Diffstat (limited to 'addon/pages/pages.php')
-rwxr-xr-x | addon/pages/pages.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/addon/pages/pages.php b/addon/pages/pages.php index 6b242be31..9e90cc24d 100755 --- a/addon/pages/pages.php +++ b/addon/pages/pages.php @@ -55,7 +55,7 @@ function pages_getpages($uid) { // Look if the profile is a community page foreach($contacts as $contact) { if (pages_iscommunity($contact["url"], $pagelist)) - $pages[] = array("url"=>$contact["url"], "Name"=>$contact["Name"]); + $pages[] = array("url"=>$contact["url"], "Name"=>$contact["Name"], "id"=>$contact["id"]); } // Write back cached pagelist @@ -76,7 +76,8 @@ function pages_page_end($a,&$b) { $contacts = pages_getpages($a->user['uid']); foreach($contacts as $contact) { - $pages .= '<li class="tool"><a href="'.$contact["url"].'" class="label" target="external-link">'.$contact["Name"]."</a></li>"; + $pages .= '<li class="tool"><a href="'.$a->get_baseurl().'/redir/'.$contact["id"].'" class="label" target="external-link">'. + $contact["Name"]."</a></li>"; } $pages .= "</ul></div></div>"; if (sizeof($contacts) > 0) |