aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-01-15 18:55:07 +0000
committerMario <mario@mariovavti.com>2021-01-15 18:55:07 +0000
commitaa8eb9522fcaaa04c3a5fc8be1584555cd53617a (patch)
tree57fe714e0041ec94033040fea57c7138a5632826 /Zotlabs
parent503015724653086209ca00a16df5c4a87fe775f4 (diff)
downloadvolse-hubzilla-aa8eb9522fcaaa04c3a5fc8be1584555cd53617a.tar.gz
volse-hubzilla-aa8eb9522fcaaa04c3a5fc8be1584555cd53617a.tar.bz2
volse-hubzilla-aa8eb9522fcaaa04c3a5fc8be1584555cd53617a.zip
wiki issues
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Lib/NativeWikiPage.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/Zotlabs/Lib/NativeWikiPage.php b/Zotlabs/Lib/NativeWikiPage.php
index d84cc50a8..2877a78f8 100644
--- a/Zotlabs/Lib/NativeWikiPage.php
+++ b/Zotlabs/Lib/NativeWikiPage.php
@@ -163,7 +163,7 @@ class NativeWikiPage {
return [ 'success' => true, 'page' => $page ];
}
- return [ 'success' => false, 'item_id' => $c['item_id'], 'message' => t('Page not found') ];
+ return [ 'success' => false, 'message' => t('Page not found') ];
}
@@ -339,7 +339,6 @@ class NativeWikiPage {
}
static public function save_page($arr) {
-
$pageUrlName = ((array_key_exists('pageUrlName',$arr)) ? $arr['pageUrlName'] : '');
$content = ((array_key_exists('content',$arr)) ? $arr['content'] : '');
$resource_id = ((array_key_exists('resource_id',$arr)) ? $arr['resource_id'] : '');
@@ -385,7 +384,7 @@ class NativeWikiPage {
$ret = item_store($item, false, false);
if($ret['item_id'])
- return array('message' => '', 'item_id' => $ret['item_id'], 'filename' => $filename, 'success' => true);
+ return array('message' => '', 'item_id' => $ret['item_id'], 'filename' => $pageUrlName, 'success' => true);
else
return array('message' => t('Page update failed.'), 'success' => false);
}