diff options
author | Mario Vavti <mario@mariovavti.com> | 2017-01-26 12:23:59 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-01-26 12:23:59 +0100 |
commit | 54826808cf8d2ee7fdf80d6be1283fca47ec1c35 (patch) | |
tree | fc71582068fb4fda784d9d1009f6aae5b4a93f88 | |
parent | b30e799847666fcac7caecf85f0329f28c11e3a7 (diff) | |
download | volse-hubzilla-54826808cf8d2ee7fdf80d6be1283fca47ec1c35.tar.gz volse-hubzilla-54826808cf8d2ee7fdf80d6be1283fca47ec1c35.tar.bz2 volse-hubzilla-54826808cf8d2ee7fdf80d6be1283fca47ec1c35.zip |
minor cleanup
-rw-r--r-- | Zotlabs/Module/Wiki.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Zotlabs/Module/Wiki.php b/Zotlabs/Module/Wiki.php index d075c02aa..2ba4df209 100644 --- a/Zotlabs/Module/Wiki.php +++ b/Zotlabs/Module/Wiki.php @@ -417,7 +417,6 @@ class Wiki extends \Zotlabs\Web\Controller { $page = Zlib\NativeWikiPage::create_page($owner['channel_id'],$observer_hash, $name, $resource_id); if($page['item_id']) { - $ob = \App::get_observer(); $commit = Zlib\NativeWikiPage::commit(array( 'commit_msg' => t('New page created'), 'resource_id' => $resource_id, @@ -481,7 +480,6 @@ class Wiki extends \Zotlabs\Web\Controller { $saved = Zlib\NativeWikiPage::save_page(array('channel_id' => $owner['channel_id'], 'observer_hash' => $observer_hash, 'resource_id' => $resource_id, 'pageUrlName' => $pageUrlName, 'content' => $content)); if($saved['success']) { - $ob = \App::get_observer(); $commit = Zlib\NativeWikiPage::commit(array( 'commit_msg' => $commitMsg, 'pageUrlName' => $pageUrlName, @@ -628,12 +626,11 @@ class Wiki extends \Zotlabs\Web\Controller { $renamed = Zlib\NativeWikiPage::rename_page(array('channel_id' => $owner['channel_id'], 'observer_hash' => $observer_hash, 'resource_id' => $resource_id, 'pageUrlName' => $pageUrlName, 'pageNewName' => $pageNewName)); if($renamed['success']) { - $ob = \App::get_observer(); $commit = Zlib\NativeWikiPage::commit(array( 'channel_id' => $owner['channel_id'], 'commit_msg' => 'Renamed ' . urldecode($pageUrlName) . ' to ' . $renamed['page']['htmlName'], 'resource_id' => $resource_id, - 'observer_hash' => $ob['xchan_hash'], + 'observer_hash' => $observer_hash, 'pageUrlName' => $pageNewName )); if($commit['success']) { |