Index: trunk/extensions/WikimediaIncubator/WikimediaIncubator.i18n.php |
— | — | @@ -26,6 +26,7 @@ |
27 | 27 | 'wminc-warning-suggest-move' => 'You can [{{fullurl:Special:MovePage/$3|wpNewTitle=$2}} move this page to $1].', |
28 | 28 | 'right-viewuserlang' => 'View [[Special:ViewUserLang|user language and test wiki]]', |
29 | 29 | 'randombytest' => 'Random page by test wiki', |
| 30 | + 'randombytest-nopages' => 'There are no pages in your test wiki, in the namespace: $1.', |
30 | 31 | ); |
31 | 32 | |
32 | 33 | /** Message documentation (Message documentation) |
Index: trunk/extensions/WikimediaIncubator/WikimediaIncubator.php |
— | — | @@ -10,7 +10,7 @@ |
11 | 11 | 'path' => __FILE__, |
12 | 12 | 'name' => 'Wikimedia Incubator', |
13 | 13 | 'author' => 'SPQRobin', |
14 | | - 'version' => '2.3.2', |
| 14 | + 'version' => '2.3.3', |
15 | 15 | 'url' => 'http://www.mediawiki.org/wiki/Extension:WikimediaIncubator', |
16 | 16 | 'description' => 'Test wiki features for Wikimedia Incubator', |
17 | 17 | 'descriptionmsg' => 'wminc-desc', |
Index: trunk/extensions/WikimediaIncubator/SpecialRandomByTest.php |
— | — | @@ -7,15 +7,12 @@ |
8 | 8 | class SpecialRandomByTest extends RandomPage |
9 | 9 | { |
10 | 10 | public function __construct() { |
11 | | - parent::__construct( 'RandomByTest' ); |
12 | | - } |
13 | | - |
14 | | - public function addExtraSQL() { |
15 | 11 | global $wgUser, $wmincPref; |
16 | 12 | if(IncubatorTest::isNormalPrefix()) { |
17 | | - return 'page_title like "W'.$wgUser->getOption($wmincPref . '-project').'/'.$wgUser->getOption($wmincPref . '-code').'/%%"'; |
| 13 | + $this->extra[] = 'page_title like "W'.$wgUser->getOption($wmincPref . '-project').'/'.$wgUser->getOption($wmincPref . '-code').'/%%"'; |
18 | 14 | } elseif($wgUser->getOption($wmincPref . '-project') == 'inc') { |
19 | | - return 'page_title not like "W_/%%" OR "W_/%%/%%"'; |
| 15 | + $this->extra[] = 'page_title not like "W_/%%" OR "W_/%%/%%"'; |
20 | 16 | } |
| 17 | + parent::__construct( 'RandomByTest' ); |
21 | 18 | } |
22 | 19 | } |