Added default updateSkippedMessage() message
authorAaron Schulz <aaron@users.mediawiki.org>
Thu, 27 Oct 2011 18:37:11 +0000 (18:37 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Thu, 27 Oct 2011 18:37:11 +0000 (18:37 +0000)
maintenance/Maintenance.php

index 95854b0..5e7f0d4 100644 (file)
@@ -1276,6 +1276,15 @@ abstract class LoggedUpdateMaintenance extends Maintenance {
                }
        }
 
+       /**
+        * Message to show that the update was done already and was just skipped
+        * @return String
+        */
+       protected function updateSkippedMessage() {
+               $key = $this->getUpdateKey();
+               return "Update '{$key}' already logged as completed.";
+       }
+
        /**
         * Message to show the the update log was unable to log the completion of this update
         * @return String
@@ -1297,10 +1306,4 @@ abstract class LoggedUpdateMaintenance extends Maintenance {
         * @return String
         */
        abstract protected function getUpdateKey();
-
-       /**
-        * Message to show that the update was done already and was just skipped
-        * @return String
-        */
-       abstract protected function updateSkippedMessage();
 }