Merge "(bug 40876) Icon for PSD (Adobe Photoshop) file types."
authorHashar <hashar@free.fr>
Fri, 19 Oct 2012 13:43:42 +0000 (13:43 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 19 Oct 2012 13:43:42 +0000 (13:43 +0000)
includes/EditPage.php

index 137a621..17335e4 100644 (file)
@@ -471,7 +471,7 @@ class EditPage {
                $content = $this->getContentObject();
 
                # Use the normal message if there's nothing to display
-               if ( $this->firsttime && ( $content === false || $content->isEmpty() ) ) {
+               if ( $this->firsttime && ( !$content || $content->isEmpty() ) ) {
                        $action = $this->mTitle->exists() ? 'edit' :
                                ( $this->mTitle->isTalkPage() ? 'createtalk' : 'createpage' );
                        throw new PermissionsError( $action, $permErrors );