fixed minor bug
authorTim Starling <tstarling@users.mediawiki.org>
Wed, 7 Apr 2004 13:56:47 +0000 (13:56 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Wed, 7 Apr 2004 13:56:47 +0000 (13:56 +0000)
includes/SkinPHPTal.php

index 4fc2cf1..c631e42 100644 (file)
@@ -84,7 +84,7 @@
                        $tpl->setRef( 'charset', $wgOutputEncoding);
                        $tpl->setRef( 'skinname', $this->skinname );
                        $tpl->setRef( "loggedin", &$this->loggedin );
-                       $tpl->set( "editable", ($wgTitle->getNamespace != Namespace::getSpecial() ) );
+                       $tpl->set( "editable", ($wgTitle->getNamespace() != NS_SPECIAL ) );
                        $tpl->set( "exists", $wgTitle->getArticleID() != 0 );
                        $tpl->set( "watch", $wgTitle->userIsWatching() ? "unwatch" : "watch" );
                        $tpl->set( "protect", count($wgTitle->getRestrictions()) ? "unprotect" : "protect" );