those are strings, not constants..
authorGabriel Wicke <gwicke@users.mediawiki.org>
Thu, 22 Apr 2004 22:40:21 +0000 (22:40 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Thu, 22 Apr 2004 22:40:21 +0000 (22:40 +0000)
includes/SkinPHPTal.php

index c642ea5..4153576 100644 (file)
                function getPageTitleActionText () {
                        global $action;
                        switch($action) {
-                               case edit:
+                               case 'edit':
                                        return  wfMsg('edit');
-                               case history:
+                               case 'history':
                                        return wfMsg('history_short');
-                               case protect:
+                               case 'protect':
                                        return wfMsg('unprotect');
-                               case unprotect:
+                               case 'unprotect':
                                        return wfMsg('unprotect');
-                               case delete:
+                               case 'delete':
                                        return wfMsg('delete');
-                               case watch:
+                               case 'watch':
                                        return wfMsg('watch');
-                               case unwatch:
+                               case 'unwatch':
                                        return wfMsg('unwatch');
                                default:
                                        return '';