From: <var...@us...> - 2008-09-14 10:22:31
|
Revision: 6259 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6259&view=rev Author: vargenau Date: 2008-09-14 10:22:40 +0000 (Sun, 14 Sep 2008) Log Message: ----------- Do not show the History and Diff buttons if the page does not exist Modified Paths: -------------- trunk/themes/MonoBook/templates/actionbar.tmpl Modified: trunk/themes/MonoBook/templates/actionbar.tmpl =================================================================== --- trunk/themes/MonoBook/templates/actionbar.tmpl 2008-09-10 16:08:26 UTC (rev 6258) +++ trunk/themes/MonoBook/templates/actionbar.tmpl 2008-09-14 10:22:40 UTC (rev 6259) @@ -36,8 +36,14 @@ <?php } else { ?> <?= ActionButton("viewsource", _("View Source")) ?> <?php } ?> + + <?php if ($dbh->isWikiPage($page->getName())) { ?> + <?= ActionButton(_("PageHistory"),_("History"),false,array('title'=>"Past versions of this page. [alt-h]")) ?> <?= ActionButton("diff") ?> + + <?php } ?> + <? if ( $user->isSignedIn() ) { ?> <?= ActionButton("WatchPage", _("Watch"), false, array('title'=>"Add/Remove this to/from the list of pages you're monitoring for changes [alt-l]")) ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |