brion | 1 Jul 01:04 2011
Picon

SVN: [91234] trunk/extensions/ParserPlayground/modules

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

Revision: 91234
Author:   brion
Date:     2011-06-30 23:04:08 +0000 (Thu, 30 Jun 2011)
Log Message:
-----------
Disable the PEG editing box for now (to be replaced with a nicer way to plug in alternates & tweak them)

Modified Paths:
--------------
    trunk/extensions/ParserPlayground/modules/ext.parserPlayground.js
    trunk/extensions/ParserPlayground/modules/ext.parserPlayground.pegParser.js

Modified: trunk/extensions/ParserPlayground/modules/ext.parserPlayground.js
===================================================================
--- trunk/extensions/ParserPlayground/modules/ext.parserPlayground.js	2011-06-30 22:58:44 UTC
(rev 91233)
+++ trunk/extensions/ParserPlayground/modules/ext.parserPlayground.js	2011-06-30 23:04:08 UTC
(rev 91234)
 <at>  <at>  -207,7 +207,7  <at>  <at> 
 						}, pp.renderMap);
 					},
 					hide: function() {
-						$('#pegparser-source').hide(); // it'll reshow; others won't need it
+						//$('#pegparser-source').hide(); // it'll reshow; others won't need it
 						context.$iframe = undefined;
 						if (context.$parserContainer !== undefined) {
 							context.$parserContainer.remove();

(Continue reading)

yaron | 1 Jul 01:12 2011
Picon

SVN: [91235] trunk/extensions/SemanticForms/includes/SF_FormPrinter.php

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

Revision: 91235
Author:   yaron
Date:     2011-06-30 23:12:57 +0000 (Thu, 30 Jun 2011)
Log Message:
-----------
Follow-up to r91205 - code now checks for both esaped and unescaped versions of field names with
apostrophes, because for some reason either one can happen in different circumstances. Also added
Stephan Gambke, as an author.

Modified Paths:
--------------
    trunk/extensions/SemanticForms/includes/SF_FormPrinter.php

Modified: trunk/extensions/SemanticForms/includes/SF_FormPrinter.php
===================================================================
--- trunk/extensions/SemanticForms/includes/SF_FormPrinter.php	2011-06-30 23:04:08 UTC (rev 91234)
+++ trunk/extensions/SemanticForms/includes/SF_FormPrinter.php	2011-06-30 23:12:57 UTC (rev 91235)
 <at>  <at>  -7,6 +7,7  <at>  <at> 
  *  <at> author Jeffrey Stuckman
  *  <at> author Harold Solbrig
  *  <at> author Daniel Hansch
+ *  <at> author Stephan Gambke
  *  <at> file
  *  <at> ingroup SF
  */
 <at>  <at>  -785,12 +786,23  <at>  <at> 
 						$field_args['show on select'] = $show_on_select;
 					// Get the value from the request, if
(Continue reading)

reedy | 1 Jul 01:53 2011
Picon

SVN: [91236] trunk/extensions/MetricsReporting/ApiAnalyticsBase.php

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

Revision: 91236
Author:   reedy
Date:     2011-06-30 23:53:34 +0000 (Thu, 30 Jun 2011)
Log Message:
-----------
Date range parsing, done as seperate parameters

TODO notes

Modified Paths:
--------------
    trunk/extensions/MetricsReporting/ApiAnalyticsBase.php

Modified: trunk/extensions/MetricsReporting/ApiAnalyticsBase.php
===================================================================
--- trunk/extensions/MetricsReporting/ApiAnalyticsBase.php	2011-06-30 23:12:57 UTC (rev 91235)
+++ trunk/extensions/MetricsReporting/ApiAnalyticsBase.php	2011-06-30 23:53:34 UTC (rev 91236)
 <at>  <at>  -38,12 +38,19  <at>  <at> 
 		$query = $this->getQueryInfo();
 		$query['fields'] = $this->getQueryFields();

-		$query['conds']['date'] = $params['months'];
+		$db = $this->getDB();
+		if ( $params['startmonth'] && !$params['endmonth'] ) {
+			$query['conds']['date'] = $params['months'];
+		} else {
+			$query['conds'] = "date >= ". $db->addQuotes( $params['startmonth'] )
+							. " AND date <= " . $db->addQuotes( $params['endmonth'] ) ;
(Continue reading)

tparscal | 1 Jul 01:54 2011
Picon

SVN: [91237] trunk/parsers/wikidom

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

Revision: 91237
Author:   tparscal
Date:     2011-06-30 23:54:45 +0000 (Thu, 30 Jun 2011)
Log Message:
-----------
Refactored flow to be more efficient and well structured and added more documentation.

Modified Paths:
--------------
    trunk/parsers/wikidom/demos/es/index.html
    trunk/parsers/wikidom/lib/es/es.ParagraphBlock.js
    trunk/parsers/wikidom/lib/es/es.Surface.css
    trunk/parsers/wikidom/lib/es/es.TextFlow.js

Modified: trunk/parsers/wikidom/demos/es/index.html
===================================================================
--- trunk/parsers/wikidom/demos/es/index.html	2011-06-30 23:53:34 UTC (rev 91236)
+++ trunk/parsers/wikidom/demos/es/index.html	2011-06-30 23:54:45 UTC (rev 91237)
 <at>  <at>  -6,7 +6,6  <at>  <at> 
 		<link rel="stylesheet" href="../../lib/es/es.Surface.css">
 	</head>
 	<body>
-		<h1>EditSurface Demo</h1>
 		<div id="es"></div>
 		
 		<!-- EditSurface -->

Modified: trunk/parsers/wikidom/lib/es/es.ParagraphBlock.js
(Continue reading)

aaron | 1 Jul 02:12 2011
Picon

SVN: [91238] trunk/phase3/includes

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

Revision: 91238
Author:   aaron
Date:     2011-07-01 00:12:09 +0000 (Fri, 01 Jul 2011)
Log Message:
-----------
Follow-up r91123:
* Tweaked getRevision() return type to NULL on failure
* Changed "$revision === null" checks to just "!$revision" (this avoids the landmine of getting false or something)

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

Modified: trunk/phase3/includes/Article.php
===================================================================
--- trunk/phase3/includes/Article.php	2011-06-30 23:54:45 UTC (rev 91237)
+++ trunk/phase3/includes/Article.php	2011-07-01 00:12:09 UTC (rev 91238)
 <at>  <at>  -280,7 +280,7  <at>  <at> 

 		if ( $oldid ) {
 			$revision = Revision::newFromId( $oldid );
-			if ( $revision === null ) {
+			if ( !$revision ) {
 				wfDebug( __METHOD__ . " failed to retrieve specified revision, id $oldid\n" );
 				return false;
 			}
 <at>  <at>  -300,7 +300,7  <at>  <at> 
(Continue reading)

kaldari | 1 Jul 02:16 2011
Picon

SVN: [91239] trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove. defaultOptions.js

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

Revision: 91239
Author:   kaldari
Date:     2011-07-01 00:16:10 +0000 (Fri, 01 Jul 2011)
Log Message:
-----------
fixing size for half barnstar, making spelling consistant (other entries are all US spelling)

Modified Paths:
--------------
    trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.defaultOptions.js

Modified: trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.defaultOptions.js
===================================================================
---
trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.defaultOptions.js	2011-07-01
00:12:09 UTC (rev 91238)
+++
trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.defaultOptions.js	2011-07-01
00:16:10 UTC (rev 91239)
 <at>  <at>  -129,7 +129,8  <at>  <at> 
 					descr: 'The Half Barnstar is awarded for excellence in cooperation, especially for productive
editing with someone who holds an opposing viewpoint.',
 					header: 'A barnstar for you!',
 					title: 'The Half Barnstar',
-					image: 'Halfstar Hires.png'
+					image: 'Halfstar Hires.png',
+					imageSize: '60px'
 				},
(Continue reading)

brion | 1 Jul 02:53 2011
Picon

SVN: [91240] trunk/extensions/ParserPlayground/modules

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

Revision: 91240
Author:   brion
Date:     2011-07-01 00:53:10 +0000 (Fri, 01 Jul 2011)
Log Message:
-----------
ParserPlayground: some fixies for round-tripping peg version of refs

Modified Paths:
--------------
    trunk/extensions/ParserPlayground/modules/ext.parserPlayground.fakeParser.js
    trunk/extensions/ParserPlayground/modules/ext.parserPlayground.js
    trunk/extensions/ParserPlayground/modules/ext.parserPlayground.pegParser.js
    trunk/extensions/ParserPlayground/modules/pegParser.pegjs.txt

Modified: trunk/extensions/ParserPlayground/modules/ext.parserPlayground.fakeParser.js
===================================================================
--- trunk/extensions/ParserPlayground/modules/ext.parserPlayground.fakeParser.js	2011-07-01
00:16:10 UTC (rev 91239)
+++ trunk/extensions/ParserPlayground/modules/ext.parserPlayground.fakeParser.js	2011-07-01
00:53:10 UTC (rev 91240)
 <at>  <at>  -305,6 +305,10  <at>  <at> 
 		return str;
 	};
 	var src;
+	if (typeof tree === "string") {
+		callback(tree);
+		return;
+	}
(Continue reading)

reedy | 1 Jul 03:30 2011
Picon

SVN: [91241] trunk/phase3/includes/User.php

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

Revision: 91241
Author:   reedy
Date:     2011-07-01 01:30:26 +0000 (Fri, 01 Jul 2011)
Log Message:
-----------
Followup r91168, fix last usage of $currentUser which was undefined

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

Modified: trunk/phase3/includes/User.php
===================================================================
--- trunk/phase3/includes/User.php	2011-07-01 00:53:10 UTC (rev 91240)
+++ trunk/phase3/includes/User.php	2011-07-01 01:30:26 UTC (rev 91241)
 <at>  <at>  -2582,13 +2582,14  <at>  <at> 
 			$this->setNewtalk( false );
 			return;
 		}
-		if( $currentUser != 0 )  {
+		$id = $this->getId();
+		if( $id != 0 )  {
 			$dbw = wfGetDB( DB_MASTER );
 			$dbw->update( 'watchlist',
 				array( /* SET */
 					'wl_notificationtimestamp' => null
 				), array( /* WHERE */
-					'wl_user' => $this->getId()
(Continue reading)

reedy | 1 Jul 03:37 2011
Picon

SVN: [91242] trunk/phase3/skins

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

Revision: 91242
Author:   reedy
Date:     2011-07-01 01:37:15 +0000 (Fri, 01 Jul 2011)
Log Message:
-----------
Remove unused parameter, update callers

Trim whitespace

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

Modified: trunk/phase3/skins/Modern.php
===================================================================
--- trunk/phase3/skins/Modern.php	2011-07-01 01:30:26 UTC (rev 91241)
+++ trunk/phase3/skins/Modern.php	2011-07-01 01:37:15 UTC (rev 91242)
 <at>  <at>  -63,7 +63,7  <at>  <at> 
 	<div id="mw_main">
 	<div id="mw_contentwrapper">
 	<!-- navigation portlet -->
-<?php $this->cactions( $skin ); ?>
+<?php $this->cactions(); ?>

 	<!-- content -->
 	<div id="mw_content">
(Continue reading)

reedy | 1 Jul 03:42 2011
Picon

SVN: [91243] trunk/phase3/maintenance

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

Revision: 91243
Author:   reedy
Date:     2011-07-01 01:42:48 +0000 (Fri, 01 Jul 2011)
Log Message:
-----------
Fix numerous undefined variables

Modified Paths:
--------------
    trunk/phase3/maintenance/deleteOldRevisions.php
    trunk/phase3/maintenance/fixSlaveDesync.php
    trunk/phase3/maintenance/language/StatOutputs.php
    trunk/phase3/maintenance/nukePage.php
    trunk/phase3/maintenance/purgeOldText.inc
    trunk/phase3/maintenance/storage/checkStorage.php

Modified: trunk/phase3/maintenance/deleteOldRevisions.php
===================================================================
--- trunk/phase3/maintenance/deleteOldRevisions.php	2011-07-01 01:37:15 UTC (rev 91242)
+++ trunk/phase3/maintenance/deleteOldRevisions.php	2011-07-01 01:42:48 UTC (rev 91243)
 <at>  <at>  -60,6 +60,7  <at>  <at> 
 		# Get "active" revisions from the page table
 		$this->output( "Searching for active revisions..." );
 		$res = $dbw->query( "SELECT page_latest FROM $tbl_pag{$pageIdClause}" );
+		$cur = array();
 		foreach ( $res as $row ) {
 			$cur[] = $row->page_latest;
 		}
(Continue reading)


Gmane