mrzman | 1 Sep 2009 05:01
Picon
Favicon

SVN: [55706] trunk/extensions/IndexFunction/IndexFunction.php

http://www.mediawiki.org/wiki/Special:Code/MediaWiki/55706

Revision: 55706
Author:   mrzman
Date:     2009-09-01 03:01:58 +0000 (Tue, 01 Sep 2009)

Log Message:
-----------
Use ParserTestTables hook

Modified Paths:
--------------
    trunk/extensions/IndexFunction/IndexFunction.php

Modified: trunk/extensions/IndexFunction/IndexFunction.php
===================================================================
--- trunk/extensions/IndexFunction/IndexFunction.php	2009-09-01 01:11:56 UTC (rev 55705)
+++ trunk/extensions/IndexFunction/IndexFunction.php	2009-09-01 03:01:58 UTC (rev 55706)
 <at>  <at>  -34,6 +34,7  <at>  <at> 
 $wgHooks['BeforePageDisplay'][] = 'efIndexJS';
 # Schema updates for update.php
 $wgHooks['LoadExtensionSchemaUpdates'][] = 'efIndexUpdateSchema';
+$wgHooks['ParserTestTables'][] = 'efParserTestTables';

 # Setup the special page
 $wgSpecialPages['Index'] = 'SpecialIndex';
 <at>  <at>  -70,6 +71,10  <at>  <at> 
 		dirname( __FILE__ ) . '/indexes.sql' );
 	return true;
 }
(Continue reading)

tparscal | 1 Sep 2009 02:06
Picon
Favicon

SVN: [55704] trunk/extensions/UsabilityInitiative

http://www.mediawiki.org/wiki/Special:Code/MediaWiki/55704

Revision: 55704
Author:   tparscal
Date:     2009-09-01 00:05:47 +0000 (Tue, 01 Sep 2009)

Log Message:
-----------
Refactored the code for initializing the toolbar (no more global config, people need to use the API!). Moved dialog stuff to a new module called dialogs which contains the stock dialogs and can also be extended on initialization. Need to add API to extend dialogs module still, and dialogs need some attention to clean them up and such.

Modified Paths:
--------------
    trunk/extensions/UsabilityInitiative/EditToolbar/EditToolbar.js
    trunk/extensions/UsabilityInitiative/UsabilityInitiative.hooks.php
    trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.toolbar.js
    trunk/extensions/UsabilityInitiative/js/plugins.combined.js
    trunk/extensions/UsabilityInitiative/js/plugins.combined.min.js

Added Paths:
-----------
    trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.dialogs.js

Modified: trunk/extensions/UsabilityInitiative/EditToolbar/EditToolbar.js
===================================================================
--- trunk/extensions/UsabilityInitiative/EditToolbar/EditToolbar.js	2009-08-31 22:57:37 UTC (rev 55703)
+++ trunk/extensions/UsabilityInitiative/EditToolbar/EditToolbar.js	2009-09-01 00:05:47 UTC (rev 55704)
 <at>  <at>  -5,1252 +5,732  <at>  <at> 
 		// Remove the old toolbar
 		$j( '#toolbar' ).remove();
 		// Build a wikiEditor around the textarea
(Continue reading)

demon | 1 Sep 2009 03:12
Picon
Favicon

SVN: [55705] trunk/phase3/skins/Modern.php

http://www.mediawiki.org/wiki/Special:Code/MediaWiki/55705

Revision: 55705
Author:   demon
Date:     2009-09-01 01:11:56 +0000 (Tue, 01 Sep 2009)

Log Message:
-----------
Minor spacing tweaks, etc to make it even more like Monobook. Further proving that there is Entirely Too
Much Duplication Here!

Modified Paths:
--------------
    trunk/phase3/skins/Modern.php

Modified: trunk/phase3/skins/Modern.php
===================================================================
--- trunk/phase3/skins/Modern.php	2009-09-01 00:05:47 UTC (rev 55704)
+++ trunk/phase3/skins/Modern.php	2009-09-01 01:11:56 UTC (rev 55705)
 <at>  <at>  -231,8 +231,8  <at>  <at> 
 				<div><a href="<?php $this->text('searchaction') ?>" rel="search"><?php
$this->msg('powersearch-legend') ?></a></div><?php } ?>

 			</form>
-		</div><!-- pBody -->
-	</div><!-- portlet -->
+		</div>
+	</div>
 <?php
 	}
(Continue reading)

demon | 1 Sep 2009 16:09
Picon
Favicon

SVN: [55707] trunk/phase3/config/Installer.php

http://www.mediawiki.org/wiki/Special:Code/MediaWiki/55707

Revision: 55707
Author:   demon
Date:     2009-09-01 14:09:33 +0000 (Tue, 01 Sep 2009)

Log Message:
-----------
(bug 20463) Replace is_a() with instanceof. Installer already bails on PHP4 before we get here, so it's ok.
Still one usage of is_a() in t/Test.php, but nothing calls it and I don't care.

Modified Paths:
--------------
    trunk/phase3/config/Installer.php

Modified: trunk/phase3/config/Installer.php
===================================================================
--- trunk/phase3/config/Installer.php	2009-09-01 03:01:58 UTC (rev 55706)
+++ trunk/phase3/config/Installer.php	2009-09-01 14:09:33 UTC (rev 55707)
 <at>  <at>  -709,7 +709,7  <at>  <at> 
 if( $conf->SysopName ) {
 	# Check that the user can be created
 	$u = User::newFromName( $conf->SysopName );
-	if( is_a($u, 'User') ) { // please do not use instanceof, it breaks PHP4
+	if( $u instanceof User ) {
 		# Various password checks
 		if( $conf->SysopPass != '' ) {
 			if( $conf->SysopPass == $conf->SysopPass2 ) {
happy-melon | 1 Sep 2009 16:11
Picon
Favicon

SVN: [55708] trunk/phase3/includes/Article.php

http://www.mediawiki.org/wiki/Special:Code/MediaWiki/55708

Revision: 55708
Author:   happy-melon
Date:     2009-09-01 14:11:29 +0000 (Tue, 01 Sep 2009)

Log Message:
-----------
Follow-up to r55700 - patch up a path through which Article::mParserOutput could be called without being
set, and armour the call in Article::getRobotPolicy against other unforeseen paths.

Modified Paths:
--------------
    trunk/phase3/includes/Article.php

Modified: trunk/phase3/includes/Article.php
===================================================================
--- trunk/phase3/includes/Article.php	2009-09-01 14:09:33 UTC (rev 55707)
+++ trunk/phase3/includes/Article.php	2009-09-01 14:11:29 UTC (rev 55708)
 <at>  <at>  -1032,9 +1032,9  <at>  <at> 
 			$policy = array_merge( $policy,
 			                       self::formatRobotPolicy( $wgNamespaceRobotPolicies[$ns] ) );
 		}
-
-		if( $this->mTitle->canUseNoindex() && $this->mParserOutput->getIndexPolicy() ){
-			# __INDEX__ and __NOINDEX__ magic words, if allowed.
+		if( $this->mTitle->canUseNoindex() && is_object( $this->mParserOutput ) &&
$this->mParserOutput->getIndexPolicy() ){
+			# __INDEX__ and __NOINDEX__ magic words, if allowed. Incorporates
+			# a final sanity check that we have really got the parser output.
(Continue reading)

brion | 1 Sep 2009 17:04
Picon
Favicon

SVN: [55709] trunk/tools/planet/en/config.ini

http://www.mediawiki.org/wiki/Special:Code/MediaWiki/55709

Revision: 55709
Author:   brion
Date:     2009-09-01 15:04:15 +0000 (Tue, 01 Sep 2009)

Log Message:
-----------
Disable Wikimedia Hongkong blog which has gone 404, breaking updates

Modified Paths:
--------------
    trunk/tools/planet/en/config.ini

Modified: trunk/tools/planet/en/config.ini
===================================================================
--- trunk/tools/planet/en/config.ini	2009-09-01 14:11:29 UTC (rev 55708)
+++ trunk/tools/planet/en/config.ini	2009-09-01 15:04:15 UTC (rev 55709)
 <at>  <at>  -285,8 +285,9  <at>  <at> 
 [http://journal.toolserver.org/feed/]
 name=Wikimedia Toolserver

-[http://blog.wikimediahk.org/?feed=rss2]
-name = Wikimedia Hong Kong
+# 404 err starting August 27, 2009
+#[http://blog.wikimediahk.org/?feed=rss2]
+#name = Wikimedia Hong Kong

 [http://anondiss.blogspot.com/feeds/posts/default/-/Wikimedia%20Foundation]
 name=Anonymous Dissident
(Continue reading)

nikerabbit | 1 Sep 2009 17:24
Picon
Favicon

SVN: [55710] trunk/extensions/MWSearch/MWSearchUpdater.php

http://www.mediawiki.org/wiki/Special:Code/MediaWiki/55710

Revision: 55710
Author:   nikerabbit
Date:     2009-09-01 15:24:18 +0000 (Tue, 01 Sep 2009)

Log Message:
-----------
Simplify and remove deprecated is_a

Modified Paths:
--------------
    trunk/extensions/MWSearch/MWSearchUpdater.php

Modified: trunk/extensions/MWSearch/MWSearchUpdater.php
===================================================================
--- trunk/extensions/MWSearch/MWSearchUpdater.php	2009-09-01 15:04:15 UTC (rev 55709)
+++ trunk/extensions/MWSearch/MWSearchUpdater.php	2009-09-01 15:24:18 UTC (rev 55710)
 <at>  <at>  -131,7 +131,7  <at>  <at> 
 	 *  <at> static
 	 */
 	function outParam( $param ) {
-		if( is_object( $param ) && is_a( $param, 'Title' ) ) {
+		if( $param instanceof Title ) {
 			return new XML_RPC_Value(
 				array(
 					'Namespace' => new XML_RPC_Value( $param->getNamespace(), 'int' ),
daniel | 1 Sep 2009 17:52
Picon
Favicon

SVN: [55711] trunk/extensions/LanguageSelector/LanguageSelector.php

http://www.mediawiki.org/wiki/Special:Code/MediaWiki/55711

Revision: 55711
Author:   daniel
Date:     2009-09-01 15:52:22 +0000 (Tue, 01 Sep 2009)

Log Message:
-----------
sort options by code, optionally show code (use wgLanguageSelectorShowCode)

Modified Paths:
--------------
    trunk/extensions/LanguageSelector/LanguageSelector.php

Modified: trunk/extensions/LanguageSelector/LanguageSelector.php
===================================================================
--- trunk/extensions/LanguageSelector/LanguageSelector.php	2009-09-01 15:24:18 UTC (rev 55710)
+++ trunk/extensions/LanguageSelector/LanguageSelector.php	2009-09-01 15:52:22 UTC (rev 55711)
 <at>  <at>  -50,6 +50,11  <at>  <at> 
 */
 $wgLanguageSelectorLanguages = NULL;

+/**
+* Determine if language codes are shown in the selector, in addition to names;
+*/
+$wgLanguageSelectorShowCode = false;
+
 define( 'LANGUAGE_SELECTOR_MANUAL',    0 ); #don't place anywhere
 define( 'LANGUAGE_SELECTOR_AT_TOP_OF_TEXT', 1 ); #put at the top of page content
 define( 'LANGUAGE_SELECTOR_IN_TOOLBOX',  2 ); #put into toolbox
(Continue reading)

dale | 1 Sep 2009 18:01
Picon
Favicon

SVN: [55712] trunk/phase3/includes/HttpFunctions.php

http://www.mediawiki.org/wiki/Special:Code/MediaWiki/55712

Revision: 55712
Author:   dale
Date:     2009-09-01 16:01:51 +0000 (Tue, 01 Sep 2009)

Log Message:
-----------
* r55034#c3604 re-factored presently used curl options to back-end agnostic options. 
* broke out curl and php based requests into separate classes ( more general cleanup is of course possible :)
*  <at>  <at> todo these tokens need to be mapped to php fopen stream "context" along with a more general mapping of the
rest of the curl options.

Modified Paths:
--------------
    trunk/phase3/includes/HttpFunctions.php

Modified: trunk/phase3/includes/HttpFunctions.php
===================================================================
--- trunk/phase3/includes/HttpFunctions.php	2009-09-01 15:52:22 UTC (rev 55711)
+++ trunk/phase3/includes/HttpFunctions.php	2009-09-01 16:01:51 UTC (rev 55712)
 <at>  <at>  -14,7 +14,7  <at>  <at> 

 	public static function request( $method, $url, $opts = array() ){
 		$opts['method'] = ( strtoupper( $method ) == 'GET' || strtoupper( $method ) == 'POST' ) ? strtoupper(
$method ) : null;
-		$req = new HttpRequest( $url, $opts );
+		$req = HttpRequest::newRequest( $url, $opts );
 		$status = $req->doRequest();
 		if( $status->isOK() ){
(Continue reading)

daniel | 1 Sep 2009 18:24
Picon
Favicon

SVN: [55713] trunk/extensions/LanguageSelector/LanguageSelector.php

http://www.mediawiki.org/wiki/Special:Code/MediaWiki/55713

Revision: 55713
Author:   daniel
Date:     2009-09-01 16:24:31 +0000 (Tue, 01 Sep 2009)

Log Message:
-----------
fixed sorting (use sort, not ksort)

Modified Paths:
--------------
    trunk/extensions/LanguageSelector/LanguageSelector.php

Modified: trunk/extensions/LanguageSelector/LanguageSelector.php
===================================================================
--- trunk/extensions/LanguageSelector/LanguageSelector.php	2009-09-01 16:01:51 UTC (rev 55712)
+++ trunk/extensions/LanguageSelector/LanguageSelector.php	2009-09-01 16:24:31 UTC (rev 55713)
 <at>  <at>  -101,7 +101,7  <at>  <at> 
 	
 	if ( $wgLanguageSelectorLanguages === NULL ) {
 		$wgLanguageSelectorLanguages = array_keys( Language::getLanguageNames( true ) );
-		ksort( $wgLanguageSelectorLanguages );
+		sort( $wgLanguageSelectorLanguages );
 	}

 	$setlang = $wgRequest->getVal( 'setlang' );

Gmane