r39297 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r39296‎ | r39297 | r39298 >
Date:16:42, 13 August 2008
Author:ialex
Status:old
Tags:
Comment:
Added --alpha option to findSettings.php script
Modified paths:
  • /trunk/extensions/Configure/CHANGELOG (modified) (history)
  • /trunk/extensions/Configure/Configure.php (modified) (history)
  • /trunk/extensions/Configure/findSettings.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Configure/findSettings.php
@@ -26,12 +26,13 @@
2727 echo "Script that find settings that aren't configurable by the extension.\n";
2828 echo "\n";
2929 echo "Usage:\n";
30 - echo " php findSettings.php [--help|--from-doc]\n";
 30+ echo " php findSettings.php [--help|--from-doc [--alpha]]\n";
3131 echo "\n";
3232 echo "options:\n";
3333 echo "--help: display this screen\n";
3434 echo "--from-doc: compare with settings from mediawiki.org instead settings\n";
3535 echo " from this extension\n";
 36+ echo "--alpha: get the alphabetical list of settings\n";
3637 echo "\n";
3738 exit;
3839 }
@@ -54,7 +55,12 @@
5556
5657 // Get our settings defs
5758 if( isset( $options['from-doc'] ) ){
58 - $cont = Http::get( 'http://www.mediawiki.org/w/index.php?title=Manual:Configuration_settings&action=raw' );
 59+ if( isset( $options['alpha'] ) ){
 60+ $page = "Manual:Configuration_settings_(alphabetical)";
 61+ } else {
 62+ $page = "Manual:Configuration_settings";
 63+ }
 64+ $cont = Http::get( "http://www.mediawiki.org/w/index.php?title={$page}&action=raw" );
5965 $m = array();
6066 preg_match_all( '/\[\[[Mm]anual:\$(wg[A-Za-z0-9]+)\|/', $cont, $m );
6167 $allSettings = array_unique( $m[1] );
Index: trunk/extensions/Configure/CHANGELOG
@@ -1,6 +1,9 @@
22 This file lists changes on this extension.
33 Localisation updates are done on betawiki and aren't listed here.
44
 5+0.6.11 - 13 August 2008
 6+ Added --alpha option to findSettings.php script.
 7+
58 0.6.10 - 12 August 2008
69 Updated extensions settings.
710
@@ -44,6 +47,7 @@
4548 * $wgConfigureNotEditableSettings: not editable settings
4649 See Configure.php for further documentation about these settings.
4750
 51+
4852 0.5.7 - 14 July 2008
4953 Updated FlaggedRevs extension.
5054
Index: trunk/extensions/Configure/Configure.php
@@ -17,7 +17,7 @@
1818 'url' => 'http://www.mediawiki.org/wiki/Extension:Configure',
1919 'description' => 'Allow authorised users to configure the wiki by a web-based interface',
2020 'descriptionmsg' => 'configure-desc',
21 - 'version' => '0.6.10',
 21+ 'version' => '0.6.11',
2222 );
2323
2424 ## Configuration part

Status & tagging log