SF.net SVN: phpwiki:[10822] trunk/themes/Wordpress/templates/ actionbar.tmpl

vargenau--- via phpwiki-checkins <[email protected]> Wed, 05 Jan 2022 16:05:57 +0000
Newsgroups gmane.comp.web.wiki.phpwiki.checkins
Message-ID <[email protected]>
Revision: 10822
          http://sourceforge.net/p/phpwiki/code/10822
Author:   vargenau
Date:     2022-01-05 16:05:57 +0000 (Wed, 05 Jan 2022)
Log Message:
-----------
Less strings

Modified Paths:
--------------
    trunk/themes/Wordpress/templates/actionbar.tmpl

Modified: trunk/themes/Wordpress/templates/actionbar.tmpl
===================================================================
--- trunk/themes/Wordpress/templates/actionbar.tmpl	2022-01-05 15:50:22 UTC (rev 10821)
+++ trunk/themes/Wordpress/templates/actionbar.tmpl	2022-01-05 16:05:57 UTC (rev 10822)
@@ -1,13 +1,11 @@
 <nav role="navigation" aria-label="<?php echo _("Actions Menu") ?>">
 <div id="actionbar">
-
 <?php
-  if ((!$page->get('locked') || $user->isAdmin()) and $revision)
+  if ($revision && (!$page->get('locked') || $user->isAdmin()))
       $EditB = Button("edit",
-                      $revision->isCurrent() ? _("Edit this page") : _("Edit Old Revision"));
+                      $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);
 ?>
 

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.