From f7158fccc484f936ed49e50237097aef68eea9e7 Mon Sep 17 00:00:00 2001 From: rurban Date: Tue, 2 Jan 2007 13:29:40 +0000 Subject: [PATCH] fix revision can be empty, replace Sep by SEP git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@5324 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- themes/Crao/templates/actionbar.tmpl | 26 ++++++++++----------- themes/Portland/templates/actionbar.tmpl | 20 +++++++--------- themes/Portland/templates/navbar.tmpl | 15 +++++------- themes/shamino_com/templates/actionbar.tmpl | 22 ++++++++--------- 4 files changed, 38 insertions(+), 45 deletions(-) diff --git a/themes/Crao/templates/actionbar.tmpl b/themes/Crao/templates/actionbar.tmpl index 786a4cd2d..fec76bcf0 100644 --- a/themes/Crao/templates/actionbar.tmpl +++ b/themes/Crao/templates/actionbar.tmpl @@ -1,39 +1,39 @@ get('locked') || $user->isAdmin() and $revision) $EditB = Button("edit", $revision->isCurrent() ? _("Edit") : _("Edit Old Revision")); else $EditB = Button("viewsource", _("View Source")); - $Sep = $WikiTheme->getButtonSeparator(); + if (empty($revision)) $revision = $page->getCurrentRevision(false); //MSIE needs sticky.js ?>
> isAdmin() or mayAccessPage('change',$page->getName())) { ?> -get('locked') ? 'unlock' : 'lock') ?> +get('locked') ? 'unlock' : 'lock') ?> - - + + isAdmin() or mayAccessPage('remove',$page->getName())) { ?> - + - - - + + + getArg('action') == 'browse') || $user->isAdmin()) { ?> - - + + 'purge'), _("PurgeHtmlCache"), $page->getName()); $purgeb->addTooltip(_("Purge HTML cache for this page. Regenerate from WikiMarkup when next accessed.")); ?> - + - +
diff --git a/themes/Portland/templates/actionbar.tmpl b/themes/Portland/templates/actionbar.tmpl index fc2328d02..aae7b3e4c 100644 --- a/themes/Portland/templates/actionbar.tmpl +++ b/themes/Portland/templates/actionbar.tmpl @@ -1,23 +1,19 @@ - - + + getButtonSeparator(); - - if (!$page->get('locked') || $user->isAdmin()) + if ($revision and (!$page->get('locked') || $user->isAdmin())) $EditB = Button("edit", $revision->isCurrent() ? _("EditText") : _("Edit Old Revision")); else $EditB = Button("viewsource", _("View Source")); $EditB = fmt("%s of this page", $EditB); - + if (empty($revision)) $revision = $page->getCurrentRevision(false); ?> - -getLastModifiedMessage($revision) ?> - - +getLastModifiedMessage($revision) ?> + + isAdmin()) { ?> - +
diff --git a/themes/Portland/templates/navbar.tmpl b/themes/Portland/templates/navbar.tmpl index 7698e14f9..80a0e1489 100644 --- a/themes/Portland/templates/navbar.tmpl +++ b/themes/Portland/templates/navbar.tmpl @@ -1,17 +1,14 @@ - -getButtonSeparator(); -?> + by searching - + (or browse ) isAdmin()) { ?> - get('locked') ? 'unlock' : 'lock')?> - + get('locked') ? 'unlock' : 'lock')?> +
+ 'PageInfo'),_("PageInfo"),$page->getName()) ?> -isCurrent() ? _("Edit") : _("Edit Old Revision")) ?> +isCurrent() ? _("Edit") : _("Edit Old Revision")) ?> isAdmin() or mayAccessPage('change',$page->getName())) { ?> - get('locked') ? 'unlock' : 'lock') ?> + get('locked') ? 'unlock' : 'lock') ?> - - + + isAdmin() or mayAccessPage('remove',$page->getName())) { ?> - + isAdmin()) { ?> - + - - - + + + -- 2.45.0