Fix bug http://bugzilla.wikipedia.org/show_bug.cgi?id=270
authorAntoine Musso <hashar@users.mediawiki.org>
Fri, 3 Sep 2004 15:10:05 +0000 (15:10 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Fri, 3 Sep 2004 15:10:05 +0000 (15:10 +0000)
PHPTal skins would not let an user watch a non existent page.

includes/SkinPHPTal.php

index 5a961a7..f265f78 100644 (file)
@@ -450,7 +450,7 @@ class SkinPHPTal extends Skin {
                                }
                        }
 
-                       if ( $wgUser->getID() != 0 and $action != 'edit' and $action != 'submit' ) {
+                       if ( $wgUser->getID() != 0 and $action != 'submit' ) {
                                if( !$wgTitle->userIsWatching()) {
                                        $content_actions['watch'] = array('class' => ($action == 'watch' or $action == 'unwatch') ? 'selected' : false,
                                        'text' => wfMsg('watch'),