Index: trunk/extensions/ArticleCreationWorkflow/includes/ArticleCreationUtil.php |
— | — | @@ -18,8 +18,8 @@ |
19 | 19 | |
20 | 20 | $bucketConfig = array( |
21 | 21 | 'buckets' => array( |
22 | | - 'on' => 1, |
23 | | - 'off' => 99, |
| 22 | + 'on' => 99, |
| 23 | + 'off' => 1, |
24 | 24 | ), |
25 | 25 | 'version' => 1, |
26 | 26 | ); |
Index: trunk/extensions/ArticleCreationWorkflow/ArticleCreationWorkflow.hooks.php |
— | — | @@ -47,16 +47,7 @@ |
48 | 48 | /** |
49 | 49 | * Customized html that shows an article doesn't exist |
50 | 50 | */ |
51 | | - public static function BeforeDisplayNoArticleText( $article, &$text, $errors, $wgUser, &$wikiText ) { |
52 | | - // global $wgGroupPermissions; |
53 | | - // |
54 | | - // // Show the custom page if there is no error or the user is not loggin and anonmyous edit |
55 | | - // // is not allowed |
56 | | - // if ( !count( $errors ) || ( $wgUser->isAnon() && !$wgGroupPermissions['*']['edit'] ) ) { |
57 | | - // $text = ArticleCreationTemplates::showMissingPage( $article ); |
58 | | - // $wikiText = false; |
59 | | - // } |
60 | | - // return false; |
| 51 | + public static function BeforeDisplayNoArticleText( $article ) { |
61 | 52 | global $wgOut; |
62 | 53 | |
63 | 54 | if ( ArticleCreationUtil::isEnabled() ) { |
— | — | @@ -71,6 +62,7 @@ |
72 | 63 | |
73 | 64 | $vars['acConfig'] = $wgArticleCreationConfig + |
74 | 65 | array( |
| 66 | + 'enabled' => ArticleCreationUtil::isEnabled(), |
75 | 67 | 'tracking-turned-on' => ArticleCreationUtil::trackingEnabled(), |
76 | 68 | 'tracking-code-prefix' => ArticleCreationUtil::trackingCodePrefix(), |
77 | 69 | ); |