fix minor regression in r26189: users should be able to view the source of default...
authorIlmari Karonen <vyznev@users.mediawiki.org>
Thu, 27 Sep 2007 20:52:16 +0000 (20:52 +0000)
committerIlmari Karonen <vyznev@users.mediawiki.org>
Thu, 27 Sep 2007 20:52:16 +0000 (20:52 +0000)
includes/SkinTemplate.php

index ff2e2ec..2114676 100644 (file)
@@ -685,7 +685,7 @@ class SkinTemplate extends Skin {
                                                'href' => $this->mTitle->getLocalUrl( 'action=edit&section=new' )
                                        );
                                }
-                       } elseif ( $this->mTitle->exists() ) {
+                       } elseif ( $this->mTitle->exists() || $this->mTitle->isAlwaysKnown() ) {
                                $content_actions['viewsource'] = array(
                                        'class' => ($action == 'edit') ? 'selected' : false,
                                        'text' => wfMsg('viewsource'),