Index: branches/ArticleCreationWorkflow/phase3/includes/Article.php |
— | — | @@ -1004,14 +1004,12 @@ |
1005 | 1005 | $editErrors = $this->getTitle()->getUserPermissionsErrors( 'edit', $wgUser ); |
1006 | 1006 | $errors = array_merge( $createErrors, $editErrors ); |
1007 | 1007 | |
1008 | | - wfRunHooks( 'BeforeDisplayNoArticleText', array( $this, &$text, $errors, $wgUser, &$wikiText ) ); |
1009 | | - if ( !$text ) { |
1010 | | - if ( !count( $errors ) ) { |
1011 | | - $text = wfMsgNoTrans( 'noarticletext' ); |
1012 | | - } else { |
1013 | | - $text = wfMsgNoTrans( 'noarticletext-nopermission' ); |
1014 | | - } |
| 1008 | + if ( !count( $errors ) ) { |
| 1009 | + $text = wfMsgNoTrans( 'noarticletext' ); |
| 1010 | + } else { |
| 1011 | + $text = wfMsgNoTrans( 'noarticletext-nopermission' ); |
1015 | 1012 | } |
| 1013 | + wfRunHooks( 'BeforeDisplayNoArticleText', array( $this, &$text, $errors, $wgUser, &$wikiText ) ); |
1016 | 1014 | } |
1017 | 1015 | $text = "<div class='noarticletext'>\n$text\n</div>"; |
1018 | 1016 | |