From: <var...@us...> - 2022-01-06 15:48:05
|
Revision: 10856 http://sourceforge.net/p/phpwiki/code/10856 Author: vargenau Date: 2022-01-06 15:48:03 +0000 (Thu, 06 Jan 2022) Log Message: ----------- themes/Portland/templates/actionbar.tmpl: add {}; DEBUG is always defined Modified Paths: -------------- trunk/themes/Portland/templates/actionbar.tmpl Modified: trunk/themes/Portland/templates/actionbar.tmpl =================================================================== --- trunk/themes/Portland/templates/actionbar.tmpl 2022-01-06 15:45:43 UTC (rev 10855) +++ trunk/themes/Portland/templates/actionbar.tmpl 2022-01-06 15:48:03 UTC (rev 10856) @@ -1,17 +1,22 @@ <?php - if ($revision && (!$page->get('locked') || $user->isAdmin())) - $EditB = Button("edit", - $revision->isCurrent() ? _("Edit") : _("Edit Old Revision")); - else - $EditB = Button("viewsource", _("View Source")); - $EditB = fmt("%s of this page", $EditB); - if (empty($revision)) $revision = $page->getCurrentRevision(false); +if ($revision && (!$page->get('locked') || $user->isAdmin())) { + $EditB = Button("edit", $revision->isCurrent() ? _("Edit") : _("Edit Old Revision")); +} else { + $EditB = Button("viewsource", _("View Source")); +} +$EditB = fmt("%s of this page", $EditB); +if (empty($revision)) { + $revision = $page->getCurrentRevision(false); +} ?> <?php echo $EditB ?> <a href="<?php echo WikiURL($revision,array('action'=>'diff'))?>"><?php echo $WikiTheme->getLastModifiedMessage($revision) ?></a> -<?php echo $SEP?><?php echo Button(__("PageHistory"), _("Page History")) ?> -<?php echo $SEP?><?php echo Button(__("PageInfo"), _("Page Info")) ?> -<?php if (defined('DEBUG') && DEBUG || $user->isAdmin()) { ?> -<?php echo $SEP?><?php echo Button(__("DebugBackendInfo"), _("Debug Backend Info")) ?> +<?php echo $SEP?> +<?php echo Button(__("PageHistory"), _("Page History")) ?> +<?php echo $SEP?> +<?php echo Button(__("PageInfo"), _("Page Info")) ?> +<?php if (DEBUG || $user->isAdmin()) { ?> +<?php echo $SEP?> +<?php echo Button(__("DebugBackendInfo"), _("Debug Backend Info")) ?> <?php } ?> <br /> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |