aboutsummaryrefslogtreecommitdiffstats
path: root/mod/editwebpage.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-08-14 20:56:49 -0700
committerfriendica <info@friendica.com>2013-08-14 20:56:49 -0700
commit7d0b1506a8b4e476cdabb33b6cc945b4f4113fff (patch)
tree45ff2b6d3bef287b2ccd98ec35a5ec43b5f70972 /mod/editwebpage.php
parentac541a7d3246e1c5c60ae752326c1b9ba5ccd78f (diff)
parent608e04c65eb2433a1cece9b5798f8577b611a288 (diff)
downloadvolse-hubzilla-7d0b1506a8b4e476cdabb33b6cc945b4f4113fff.tar.gz
volse-hubzilla-7d0b1506a8b4e476cdabb33b6cc945b4f4113fff.tar.bz2
volse-hubzilla-7d0b1506a8b4e476cdabb33b6cc945b4f4113fff.zip
Merge pull request #96 from beardy-unixer/master
Webpages
Diffstat (limited to 'mod/editwebpage.php')
-rw-r--r--mod/editwebpage.php12
1 files changed, 5 insertions, 7 deletions
diff --git a/mod/editwebpage.php b/mod/editwebpage.php
index 46c6b8817..f89be67c4 100644
--- a/mod/editwebpage.php
+++ b/mod/editwebpage.php
@@ -1,7 +1,8 @@
<?php
-require_once('acl_selectors.php');
+// What is this here for? I think it's cruft, but comment out for now in case it's here for a reason
+// require_once('acl_selectors.php');
function editwebpage_content(&$a) {
@@ -59,9 +60,8 @@ function editwebpage_content(&$a) {
- // All of the following is straight from editpost - but we'll need richer editing options for webpages eventually, so we may as well have it's own mod now.
-
$plaintext = true;
+// You may or may not be a local user. This won't work,
if(feature_enabled(local_user(),'richtext'))
$plaintext = false;
@@ -91,11 +91,9 @@ function editwebpage_content(&$a) {
//$tpl = replace_macros($tpl,array('$jotplugins' => $jotplugins));
-//FIXME A return path with $_SESSION doesn't work for observer (at least, not here it doesn't). It'll WSoD instead of loading a sensible page. So, send folk
-//back to the channel address until somebody figures out how to fix it - we can't send them back to webpages, because that could leak private pages they can't see
-//when ACL is done.
+//FIXME A return path with $_SESSION doesn't always work for observer - it may WSoD instead of loading a sensible page. So, send folk to the webpage list.
- $rp = 'channel' . '/' . $which;
+ $rp = '/webpages/' . $which;
$o .= replace_macros($tpl,array(
'$return_path' => $rp,