Index: trunk/extensions/ArticleCreationWorkflow/includes/ArticleCreationUtil.php |
— | — | @@ -12,7 +12,6 @@ |
13 | 13 | * @return bool whether or not it is. |
14 | 14 | */ |
15 | 15 | public static function isEnabled() { |
16 | | - return true; |
17 | 16 | global $wgUser, $wgArticleCreationRegistrationCutoff; |
18 | 17 | |
19 | 18 | $userRegistration = wfTimestamp( TS_MW, $wgUser->getRegistration() ); |
Index: trunk/extensions/ArticleCreationWorkflow/ArticleCreationWorkflow.hooks.php |
— | — | @@ -31,6 +31,10 @@ |
32 | 32 | public static function AlternateEdit( $editPage ) { |
33 | 33 | global $wgRequest, $wgOut; |
34 | 34 | |
| 35 | + if ( ! ArticleCreationUtil::isEnabled() ) { |
| 36 | + return true; |
| 37 | + } |
| 38 | + |
35 | 39 | $title = $editPage->mArticle->getTitle(); |
36 | 40 | |
37 | 41 | if ( $wgRequest->getBool( 'redlink' ) ) { |