aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Webpages.php
diff options
context:
space:
mode:
authorgit-marijus <mario@mariovavti.com>2017-05-27 19:24:15 +0200
committerGitHub <noreply@github.com>2017-05-27 19:24:15 +0200
commit8bb832e23fa3a1ffdf24de8286fd384f92ac24a6 (patch)
tree3ab5697f8230898923424cd0d925b66481b56f13 /Zotlabs/Module/Webpages.php
parent31d920817264552cece5a57c2390411af4d7a3a1 (diff)
parent184f522d5f6b03267f4fdf59f382408f91f44439 (diff)
downloadvolse-hubzilla-8bb832e23fa3a1ffdf24de8286fd384f92ac24a6.tar.gz
volse-hubzilla-8bb832e23fa3a1ffdf24de8286fd384f92ac24a6.tar.bz2
volse-hubzilla-8bb832e23fa3a1ffdf24de8286fd384f92ac24a6.zip
Merge pull request #798 from zotlabs/pagetitlefix
hubzilla issue #795
Diffstat (limited to 'Zotlabs/Module/Webpages.php')
-rw-r--r--Zotlabs/Module/Webpages.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/Zotlabs/Module/Webpages.php b/Zotlabs/Module/Webpages.php
index be697ba2c..a8fd5222b 100644
--- a/Zotlabs/Module/Webpages.php
+++ b/Zotlabs/Module/Webpages.php
@@ -218,13 +218,15 @@ class Webpages extends \Zotlabs\Web\Controller {
'created' => $rr['created'],
'edited' => $rr['edited'],
'mimetype' => $rr['mimetype'],
- 'pagetitle' => str_replace('%2f','/',$rr['v']),
+ 'pageurl' => str_replace('%2f','/',$rr['v']),
+ 'pagetitle' => urldecode($rr['v']),
'mid' => $rr['mid'],
'layout_mid' => $rr['layout_mid']
);
$pages[$rr['iid']][] = array(
'url' => $rr['iid'],
- 'pagetitle' => str_replace('%2f','/',$rr['v']),
+ 'pageurl' => str_replace('%2f','/',$rr['v']),
+ 'pagetitle' => urldecode($rr['v']),
'title' => $rr['title'],
'created' => datetime_convert('UTC',date_default_timezone_get(),$rr['created']),
'edited' => datetime_convert('UTC',date_default_timezone_get(),$rr['edited']),