aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2016-06-20 13:27:05 -0400
committerAndrew Manning <tamanning@zoho.com>2016-06-20 13:27:05 -0400
commita3ec9f394068d7dccef44c8f27c085cb380e54d5 (patch)
treef96bab39d494aa9636ae201ff7772ea964676809 /Zotlabs
parent8cd9a1e4fc28d92d270e3f154c144123dca9044a (diff)
downloadvolse-hubzilla-a3ec9f394068d7dccef44c8f27c085cb380e54d5.tar.gz
volse-hubzilla-a3ec9f394068d7dccef44c8f27c085cb380e54d5.tar.bz2
volse-hubzilla-a3ec9f394068d7dccef44c8f27c085cb380e54d5.zip
Add formatted heading for revision comparison viewer
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Wiki.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Module/Wiki.php b/Zotlabs/Module/Wiki.php
index 83fa0e337..bef831de8 100644
--- a/Zotlabs/Module/Wiki.php
+++ b/Zotlabs/Module/Wiki.php
@@ -452,7 +452,8 @@ class Wiki extends \Zotlabs\Web\Controller {
}
$compare = wiki_compare_page(array('currentCommit' => $currentCommit, 'compareCommit' => $compareCommit, 'resource_id' => $resource_id, 'pageUrlName' => $pageUrlName));
if($compare['success']) {
- json_return_and_die(array('diff' => $compare['diff'], 'message' => '', 'success' => true));
+ $diffHTML = '<table class="text-center" width="100%"><tr><td class="lead" width="50%">Current Revision</td><td class="lead" width="50%">Selected Revision</td></tr></table>' . $compare['diff'];
+ json_return_and_die(array('diff' => $diffHTML, 'message' => '', 'success' => true));
} else {
json_return_and_die(array('diff' => '', 'message' => 'Error comparing page', 'success' => false));
}