Disable renaming of category pages (this causes a number of problems
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 25 Apr 2004 01:01:38 +0000 (01:01 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 25 Apr 2004 01:01:38 +0000 (01:01 +0000)
currently which make it a dubious thing to try to do). Fix HTML for
error display on move. Add error class to style sheets. Fix error call
in protect. Remove dupe function that was moved from skin to output.

includes/Article.php
includes/Namespace.php
includes/SkinPHPTal.php
includes/SpecialMovepage.php
stylesheets/common.css
stylesheets/monobook/main.css

index f0dba97..3289dd1 100644 (file)
@@ -759,7 +759,7 @@ class Article {
                }
                $id = $this->mTitle->getArticleID();
                if ( 0 == $id ) {
-                       $wgOut->fatalEror( wfMsg( "badarticleerror" ) );
+                       $wgOut->fatalError( wfMsg( "badarticleerror" ) );
                        return;
                }
 
index a619b82..e3fdab5 100644 (file)
@@ -62,7 +62,7 @@ class Namespace {
 
        function isMovable( $index )
        {
-               if ( $index < NS_MAIN || $index == NS_IMAGE ) { 
+               if ( $index < NS_MAIN || $index == NS_IMAGE  || $index == NS_CATEGORY ) { 
                        return false; 
                }
                return true;
index 1d48775..53420d9 100644 (file)
                        return $nav_urls;
                }
 
-               function getPageTitleActionText () {
-                       global $action;
-                       switch($action) {
-                               case 'edit':
-                                       return  wfMsg('edit');
-                               case 'history':
-                                       return wfMsg('history_short');
-                               case 'protect':
-                                       return wfMsg('unprotect');
-                               case 'unprotect':
-                                       return wfMsg('unprotect');
-                               case 'delete':
-                                       return wfMsg('delete');
-                               case 'watch':
-                                       return wfMsg('watch');
-                               case 'unwatch':
-                                       return wfMsg('unwatch');
-                               case 'submit':
-                                       return wfMsg('preview');
-                               default:
-                                       return '';
-                       }
-               }
                /*static*/ function makeSpecialUrl( $name, $urlaction='' ) {
                        $title = Title::makeTitle( NS_SPECIAL, $name );
                        $this->checkTitle(&$title, &$name);     
index f3a25fe..07ef62e 100644 (file)
@@ -61,7 +61,7 @@ class MovePageForm {
 
                if ( "" != $err ) {
                        $wgOut->setSubtitle( wfMsg( "formerror" ) );
-                       $wgOut->addHTML( "<p><font color='red' size='+1'>{$err}</font>\n" );
+                       $wgOut->addHTML( "<p class='error'>{$err}</p>\n" );
                }
                $wgOut->addHTML( "
 <form id=\"movepage\" method=\"post\" action=\"{$action}\">
index 6afed32..998528c 100644 (file)
@@ -95,3 +95,7 @@ img { border: none; }
         font-size: 95%;
 }
 
+.error {
+       color: red;
+       font-size: larger;
+}
index f542da7..e91e00f 100644 (file)
@@ -998,3 +998,7 @@ head:first-child+body #portlet-personal {
 /* debugging tool.. */
 /*div{ border:1px solid #000000;}*/
 
+.error {
+       color: red;
+       font-size: larger;
+}