r82008 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r82007‎ | r82008 | r82009 >
Date:04:06, 12 February 2011
Author:mah
Status:ok
Tags:
Comment:
w/s fixups
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)
  • /trunk/phase3/includes/ConfEditor.php (modified) (history)
  • /trunk/phase3/includes/DefaultSettings.php (modified) (history)
  • /trunk/phase3/includes/EditPage.php (modified) (history)
  • /trunk/phase3/includes/LinkCache.php (modified) (history)
  • /trunk/phase3/includes/QueryPage.php (modified) (history)
  • /trunk/phase3/includes/SpecialPage.php (modified) (history)
  • /trunk/phase3/includes/Title.php (modified) (history)
  • /trunk/phase3/includes/WatchlistEditor.php (modified) (history)
  • /trunk/phase3/includes/diff/DifferenceEngine.php (modified) (history)
  • /trunk/phase3/includes/installer/DatabaseInstaller.php (modified) (history)
  • /trunk/phase3/includes/installer/WebInstallerPage.php (modified) (history)
  • /trunk/phase3/includes/job/UploadFromUrlJob.php (modified) (history)
  • /trunk/phase3/includes/libs/JavaScriptDistiller.php (modified) (history)
  • /trunk/phase3/includes/parser/CoreLinkFunctions.php (modified) (history)
  • /trunk/phase3/includes/parser/LinkHolderArray.php (modified) (history)
  • /trunk/phase3/includes/parser/Preprocessor_DOM.php (modified) (history)
  • /trunk/phase3/includes/specials/SpecialRevisiondelete.php (modified) (history)
  • /trunk/phase3/languages/Language.php (modified) (history)
  • /trunk/phase3/tests/phpunit/includes/api/ApiQueryTest.php (modified) (history)

Diff [purge]

Index: trunk/phase3/tests/phpunit/includes/api/ApiQueryTest.php
@@ -11,59 +11,59 @@
1212 parent::setUp();
1313 $this->doLogin();
1414 }
15 -
 15+
1616 function testTitlesGetNormalized() {
17 -
 17+
1818 global $wgSitename;
19 -
 19+
2020 $data = $this->doApiRequest( array(
2121 'action' => 'query',
2222 'titles' => 'Project:articleA|article_B' ) );
23 -
24 -
 23+
 24+
2525 $this->assertArrayHasKey( 'query', $data[0] );
2626 $this->assertArrayHasKey( 'normalized', $data[0]['query'] );
27 -
28 - $this->assertEquals(
29 - array(
 27+
 28+ $this->assertEquals(
 29+ array(
3030 'from' => 'Project:articleA',
3131 'to' => $wgSitename . ':ArticleA'
3232 ),
3333 $data[0]['query']['normalized'][0]
3434 );
35 -
36 - $this->assertEquals(
37 - array(
 35+
 36+ $this->assertEquals(
 37+ array(
3838 'from' => 'article_B',
3939 'to' => 'Article B'
4040 ),
4141 $data[0]['query']['normalized'][1]
4242 );
43 -
 43+
4444 }
45 -
 45+
4646 function testTitlesAreRejectedIfInvalid() {
4747 $title = false;
4848 while( !$title || Title::newFromText( $title )->exists() ) {
4949 $title = md5( mt_rand( 0, 10000 ) + rand( 0, 999000 ) );
5050 }
51 -
 51+
5252 $data = $this->doApiRequest( array(
5353 'action' => 'query',
5454 'titles' => $title . '|Talk:' ) );
55 -
56 -
 55+
 56+
5757 $this->assertArrayHasKey( 'query', $data[0] );
5858 $this->assertArrayHasKey( 'pages', $data[0]['query'] );
5959 $this->assertEquals( 2, count( $data[0]['query']['pages'] ) );
60 -
 60+
6161 $this->assertArrayHasKey( -2, $data[0]['query']['pages'] );
6262 $this->assertArrayHasKey( -1, $data[0]['query']['pages'] );
63 -
 63+
6464 $this->assertArrayHasKey( 'missing', $data[0]['query']['pages'][-2] );
6565 $this->assertArrayHasKey( 'invalid', $data[0]['query']['pages'][-1] );
66 -
67 -
 66+
 67+
6868 }
6969
7070 }
Index: trunk/phase3/includes/diff/DifferenceEngine.php
@@ -445,7 +445,7 @@
446446
447447 $this->loadNewText();
448448 $wgOut->setRevisionId( $this->mNewRev->getId() );
449 -
 449+
450450 if ( $this->mTitle->isCssJsSubpage() || $this->mTitle->isCssOrJsPage() ) {
451451 // Stolen from Article::view --AG 2007-10-11
452452 // Give hooks a chance to customise the output
@@ -465,7 +465,7 @@
466466 $wgOut->addParserOutput( $pOutput );
467467 } else {
468468 $article->doViewParse();
469 - }
 469+ }
470470 } else {
471471 $wgOut->addWikiTextTidy( $this->mNewtext );
472472 }
Index: trunk/phase3/includes/Article.php
@@ -1765,7 +1765,7 @@
17661766 *
17671767 * @param $dbw DatabaseBase: object
17681768 * @param $revision Revision: For ID number, and text used to set
1769 - length and redirect status fields
 1769+ length and redirect status fields
17701770 * @param $lastRevision Integer: if given, will not overwrite the page field
17711771 * when different from the currently set value.
17721772 * Giving 0 indicates the new page flag should be set
@@ -4403,7 +4403,7 @@
44044404 $parserOptions = new ParserOptions( $user );
44054405 $parserOptions->setTidy( true );
44064406 $parserOptions->enableLimitReport();
4407 -
 4407+
44084408 if ( $canonical ) {
44094409 $parserOptions->setUserLang( $wgLanguageCode ); # Must be set explicitely
44104410 return $parserOptions;
Index: trunk/phase3/includes/parser/LinkHolderArray.php
@@ -307,7 +307,7 @@
308308 $threshold = $this->getStubThreshold();
309309 $titlesToBeConverted = '';
310310 $titlesAttrs = array();
311 -
 311+
312312 // Concatenate titles to a single string, thus we only need auto convert the
313313 // single string to all variants. This would improve parser's performance
314314 // significantly.
@@ -322,14 +322,14 @@
323323 'ns' => $ns,
324324 'key' => "$ns:$index",
325325 'titleText' => $titleText,
326 - );
 326+ );
327327 // separate titles with \0 because it would never appears
328328 // in a valid title
329329 $titlesToBeConverted .= $titleText . "\0";
330330 }
331331 }
332332 }
333 -
 333+
334334 // Now do the conversion and explode string to text of titles
335335 $titlesAllVariants = $wgContLang->autoConvertToAllVariants( $titlesToBeConverted );
336336 $allVariantsName = array_keys( $titlesAllVariants );
Index: trunk/phase3/includes/parser/CoreLinkFunctions.php
@@ -27,7 +27,7 @@
2828 }
2929 return $holders->makeHolder( $title, isset($displayText) ? $displayText : $titleText, '', '', '' );
3030 }
31 -
 31+
3232 static function categoryLinkHook( $parser, $holders, $markers,
3333 Title $title, $titleText, &$sortText = null, &$leadingColon = false ) {
3434 global $wgContLang;
@@ -48,5 +48,5 @@
4949 $parser->mOutput->addCategory( $title->getDBkey(), $sortText );
5050 return '';
5151 }
52 -
 52+
5353 }
Index: trunk/phase3/includes/parser/Preprocessor_DOM.php
@@ -5,7 +5,7 @@
66 * @file
77 * @ingroup Parser
88 */
9 -
 9+
1010 /**
1111 * @ingroup Parser
1212 */
@@ -40,7 +40,7 @@
4141 $xml = "<list>";
4242
4343 foreach ( $values as $k => $val ) {
44 -
 44+
4545 if ( is_int( $k ) ) {
4646 $xml .= "<part><name index=\"$k\"/><value>" . htmlspecialchars( $val ) ."</value></part>";
4747 } else {
@@ -95,7 +95,7 @@
9696 function preprocessToObj( $text, $flags = 0 ) {
9797 wfProfileIn( __METHOD__ );
9898 global $wgMemc, $wgPreprocessorCacheThreshold;
99 -
 99+
100100 $xml = false;
101101 $cacheable = $wgPreprocessorCacheThreshold !== false && strlen( $text ) > $wgPreprocessorCacheThreshold;
102102 if ( $cacheable ) {
@@ -146,7 +146,7 @@
147147 wfProfileOut( __METHOD__ );
148148 return $obj;
149149 }
150 -
 150+
151151 function preprocessToXml( $text, $flags = 0 ) {
152152 wfProfileIn( __METHOD__ );
153153 $rules = array(
@@ -388,8 +388,8 @@
389389 } else {
390390 $attrEnd = $tagEndPos;
391391 // Find closing tag
392 - if ( preg_match( "/<\/" . preg_quote( $name, '/' ) . "\s*>/i",
393 - $text, $matches, PREG_OFFSET_CAPTURE, $tagEndPos + 1 ) )
 392+ if ( preg_match( "/<\/" . preg_quote( $name, '/' ) . "\s*>/i",
 393+ $text, $matches, PREG_OFFSET_CAPTURE, $tagEndPos + 1 ) )
394394 {
395395 $inner = substr( $text, $tagEndPos + 1, $matches[0][1] - $tagEndPos - 1 );
396396 $i = $matches[0][1] + strlen( $matches[0][0] );
@@ -654,7 +654,7 @@
655655 $xml = $stack->rootAccum;
656656
657657 wfProfileOut( __METHOD__ );
658 -
 658+
659659 return $xml;
660660 }
661661 }
@@ -1057,11 +1057,11 @@
10581058 # Heading
10591059 $s = $this->expand( $contextNode->childNodes, $flags );
10601060
1061 - # Insert a heading marker only for <h> children of <root>
1062 - # This is to stop extractSections from going over multiple tree levels
1063 - if ( $contextNode->parentNode->nodeName == 'root'
1064 - && $this->parser->ot['html'] )
1065 - {
 1061+ # Insert a heading marker only for <h> children of <root>
 1062+ # This is to stop extractSections from going over multiple tree levels
 1063+ if ( $contextNode->parentNode->nodeName == 'root'
 1064+ && $this->parser->ot['html'] )
 1065+ {
10661066 # Insert heading index marker
10671067 $headingIndex = $contextNode->getAttribute( 'i' );
10681068 $titleText = $this->title->getPrefixedDBkey();
@@ -1320,7 +1320,7 @@
13211321 }
13221322 return $arguments;
13231323 }
1324 -
 1324+
13251325 function getNumberedArguments() {
13261326 $arguments = array();
13271327 foreach ( array_keys($this->numberedArgs) as $key ) {
@@ -1328,7 +1328,7 @@
13291329 }
13301330 return $arguments;
13311331 }
1332 -
 1332+
13331333 function getNamedArguments() {
13341334 $arguments = array();
13351335 foreach ( array_keys($this->namedArgs) as $key ) {
Index: trunk/phase3/includes/WatchlistEditor.php
@@ -220,7 +220,7 @@
221221
222222 if( $res && $dbr->numRows( $res ) > 0 ) {
223223 $cache = LinkCache::singleton();
224 - foreach ( $res as $row ) {
 224+ foreach ( $res as $row ) {
225225 $title = Title::makeTitleSafe( $row->wl_namespace, $row->wl_title );
226226 if( $title instanceof Title ) {
227227 // Update the link cache while we're at it
Index: trunk/phase3/includes/EditPage.php
@@ -1333,7 +1333,7 @@
13341334 if ( $this->wasDeletedSinceLastEdit() && 'save' == $this->formtype ) {
13351335 $username = $this->lastDelete->user_name;
13361336 $comment = $this->lastDelete->log_comment;
1337 -
 1337+
13381338 // It is better to not parse the comment at all than to have templates expanded in the middle
13391339 // TODO: can the checkLabel be moved outside of the div so that wrapWikiMsg could be used?
13401340 $wgOut->addHTML(
@@ -1878,20 +1878,20 @@
18791879 $data = $dbr->selectRow(
18801880 array( 'logging', 'user' ),
18811881 array( 'log_type',
1882 - 'log_action',
1883 - 'log_timestamp',
1884 - 'log_user',
1885 - 'log_namespace',
1886 - 'log_title',
1887 - 'log_comment',
1888 - 'log_params',
1889 - 'log_deleted',
1890 - 'user_name' ),
 1882+ 'log_action',
 1883+ 'log_timestamp',
 1884+ 'log_user',
 1885+ 'log_namespace',
 1886+ 'log_title',
 1887+ 'log_comment',
 1888+ 'log_params',
 1889+ 'log_deleted',
 1890+ 'user_name' ),
18911891 array( 'log_namespace' => $this->mTitle->getNamespace(),
1892 - 'log_title' => $this->mTitle->getDBkey(),
1893 - 'log_type' => 'delete',
1894 - 'log_action' => 'delete',
1895 - 'user_id=log_user' ),
 1892+ 'log_title' => $this->mTitle->getDBkey(),
 1893+ 'log_type' => 'delete',
 1894+ 'log_action' => 'delete',
 1895+ 'user_id=log_user' ),
18961896 __METHOD__,
18971897 array( 'LIMIT' => 1, 'ORDER BY' => 'log_timestamp DESC' )
18981898 );
@@ -2379,11 +2379,11 @@
23802380 array_map( array( 'Xml', 'encodeJsVar' ), $params ) );
23812381 $script .= "addButton($paramList);\n";
23822382 }
2383 -
 2383+
23842384 $wgOut->addScript( Html::inlineScript(
23852385 "if ( window.mediaWiki ) { jQuery(function(){{$script}}); }"
23862386 ) );
2387 -
 2387+
23882388 $toolbar .= "\n</div>";
23892389
23902390 wfRunHooks( 'EditPageBeforeEditToolbar', array( &$toolbar ) );
@@ -2715,7 +2715,7 @@
27162716 switch ( $value ) {
27172717 case self::AS_HOOK_ERROR_EXPECTED:
27182718 case self::AS_CONTENT_TOO_BIG:
2719 - case self::AS_ARTICLE_WAS_DELETED:
 2719+ case self::AS_ARTICLE_WAS_DELETED:
27202720 case self::AS_CONFLICT_DETECTED:
27212721 case self::AS_SUMMARY_NEEDED:
27222722 case self::AS_TEXTBOX_EMPTY:
@@ -2765,22 +2765,22 @@
27662766 $this->userNotLoggedInPage();
27672767 return false;
27682768
2769 - case self::AS_READ_ONLY_PAGE_LOGGED:
2770 - case self::AS_READ_ONLY_PAGE:
2771 - $wgOut->readOnlyPage();
2772 - return false;
 2769+ case self::AS_READ_ONLY_PAGE_LOGGED:
 2770+ case self::AS_READ_ONLY_PAGE:
 2771+ $wgOut->readOnlyPage();
 2772+ return false;
27732773
2774 - case self::AS_RATE_LIMITED:
2775 - $wgOut->rateLimited();
2776 - return false;
 2774+ case self::AS_RATE_LIMITED:
 2775+ $wgOut->rateLimited();
 2776+ return false;
27772777
2778 - case self::AS_NO_CREATE_PERMISSION:
2779 - $this->noCreatePermission();
2780 - return;
 2778+ case self::AS_NO_CREATE_PERMISSION:
 2779+ $this->noCreatePermission();
 2780+ return;
27812781
27822782 case self::AS_BLANK_ARTICLE:
2783 - $wgOut->redirect( $this->getContextTitle()->getFullURL() );
2784 - return false;
 2783+ $wgOut->redirect( $this->getContextTitle()->getFullURL() );
 2784+ return false;
27852785
27862786 case self::AS_IMAGE_REDIRECT_LOGGED:
27872787 $wgOut->permissionRequired( 'upload' );
Index: trunk/phase3/includes/installer/DatabaseInstaller.php
@@ -96,7 +96,7 @@
9797
9898 /**
9999 * Open a connection to the database using the administrative user/password
100 - * currently defined in the session, without any caching. Returns a status
 100+ * currently defined in the session, without any caching. Returns a status
101101 * object. On success, the status object will contain a Database object in
102102 * its value member.
103103 *
@@ -114,9 +114,9 @@
115115
116116 /**
117117 * Connect to the database using the administrative user/password currently
118 - * defined in the session. Returns a status object. On success, the status
 118+ * defined in the session. Returns a status object. On success, the status
119119 * object will contain a Database object in its value member.
120 - *
 120+ *
121121 * This will return a cached connection if one is available.
122122 *
123123 * @return Status
@@ -212,7 +212,7 @@
213213 public abstract function getLocalSettings();
214214
215215 /**
216 - * Override this to provide DBMS-specific schema variables, to be
 216+ * Override this to provide DBMS-specific schema variables, to be
217217 * substituted into tables.sql and other schema files.
218218 */
219219 public function getSchemaVars() {
@@ -236,7 +236,7 @@
237237
238238 /**
239239 * Set up LBFactory so that wfGetDB() etc. works.
240 - * We set up a special LBFactory instance which returns the current
 240+ * We set up a special LBFactory instance which returns the current
241241 * installer connection.
242242 */
243243 public function enableLB() {
Index: trunk/phase3/includes/installer/WebInstallerPage.php
@@ -368,6 +368,7 @@
369369 $r = $this->parent->request;
370370 if ( $r->wasPosted() ) {
371371 $status = $this->submit();
 372+
372373 if ( $status->isGood() ) {
373374 $this->setVar( '_UpgradeDone', false );
374375 return 'continue';
Index: trunk/phase3/includes/Title.php
@@ -76,7 +76,7 @@
7777 # Don't change the following default, NS_MAIN is hardcoded in several
7878 # places. See bug 696.
7979 var $mDefaultNamespace = NS_MAIN; // /< Namespace index when there is no namespace
80 - # Zero except in {{transclusion}} tags
 80+ # Zero except in {{transclusion}} tags
8181 var $mWatched = null; // /< Is $wgUser watching this page? null if unfilled, accessed through userIsWatching()
8282 var $mLength = -1; // /< The page length, 0 for special pages
8383 var $mRedirect = null; // /< Is the article at this title a redirect?
@@ -226,7 +226,7 @@
227227 return array();
228228 }
229229 $dbr = wfGetDB( DB_SLAVE );
230 -
 230+
231231 $res = $dbr->select(
232232 'page',
233233 array(
@@ -1427,7 +1427,7 @@
14281428
14291429 /**
14301430 * Check restrictions on cascading pages.
1431 - *
 1431+ *
14321432 * @param $action String the action to check
14331433 * @param $user User to check
14341434 * @param $errors Array list of current errors
@@ -1841,7 +1841,7 @@
18421842 * cache that we don't need to over-optimize by doing direct comparisons and
18431843 * acidentally creating new bugs where $title->equals( Title::newFromText() )
18441844 * ends up reporting something differently than $title->isMainPage();
1845 - *
 1845+ *
18461846 * @return Bool
18471847 */
18481848 public function isMainPage() {
@@ -2004,7 +2004,7 @@
20052005 public function userCanEditJsSubpage() {
20062006 global $wgUser;
20072007 return ( ( $wgUser->isAllowed( 'editusercssjs' ) && $wgUser->isAllowed( 'edituserjs' ) )
2008 - || preg_match( '/^' . preg_quote( $wgUser->getName(), '/' ) . '\//', $this->mTextform ) );
 2008+ || preg_match( '/^' . preg_quote( $wgUser->getName(), '/' ) . '\//', $this->mTextform ) );
20092009 }
20102010
20112011 /**
@@ -2503,6 +2503,7 @@
25042504 if ( $this->mInterwiki != '' ) {
25052505 $p = $this->mInterwiki . ':';
25062506 }
 2507+
25072508 if ( 0 != $this->mNamespace ) {
25082509 $p .= $this->getNsText() . ':';
25092510 }
@@ -2640,7 +2641,7 @@
26412642
26422643 # Redundant interwiki prefix to the local wiki
26432644 if ( $wgLocalInterwiki !== false
2644 - && 0 == strcasecmp( $this->mInterwiki, $wgLocalInterwiki ) )
 2645+ && 0 == strcasecmp( $this->mInterwiki, $wgLocalInterwiki ) )
26452646 {
26462647 if ( $dbkey == '' ) {
26472648 # Can't have an empty self-link
@@ -2687,13 +2688,13 @@
26882689 # reachable due to the way web browsers deal with 'relative' URLs.
26892690 # Also, they conflict with subpage syntax. Forbid them explicitly.
26902691 if ( strpos( $dbkey, '.' ) !== false &&
2691 - ( $dbkey === '.' || $dbkey === '..' ||
2692 - strpos( $dbkey, './' ) === 0 ||
2693 - strpos( $dbkey, '../' ) === 0 ||
2694 - strpos( $dbkey, '/./' ) !== false ||
2695 - strpos( $dbkey, '/../' ) !== false ||
2696 - substr( $dbkey, -2 ) == '/.' ||
2697 - substr( $dbkey, -3 ) == '/..' ) )
 2692+ ( $dbkey === '.' || $dbkey === '..' ||
 2693+ strpos( $dbkey, './' ) === 0 ||
 2694+ strpos( $dbkey, '../' ) === 0 ||
 2695+ strpos( $dbkey, '/./' ) !== false ||
 2696+ strpos( $dbkey, '/../' ) !== false ||
 2697+ substr( $dbkey, -2 ) == '/.' ||
 2698+ substr( $dbkey, -3 ) == '/..' ) )
26982699 {
26992700 return false;
27002701 }
@@ -2972,7 +2973,7 @@
29732974 }
29742975 if ( ( $this->getDBkey() == '' ) ||
29752976 ( !$oldid ) ||
2976 - ( $nt->getDBkey() == '' ) ) {
 2977+ ( $nt->getDBkey() == '' ) ) {
29772978 $errors[] = array( 'badarticleerror' );
29782979 }
29792980
@@ -3092,7 +3093,7 @@
30933094 );
30943095 $dbw->update( 'categorylinks',
30953096 array(
3096 - 'cl_sortkey' => Collation::singleton()->getSortKey(
 3097+ 'cl_sortkey' => Collation::singleton()->getSortKey(
30973098 $nt->getCategorySortkey( $prefix ) ),
30983099 'cl_timestamp=cl_timestamp' ),
30993100 array( 'cl_from' => $pageid ),
@@ -3694,7 +3695,7 @@
36953696
36963697 /**
36973698 * Callback for usort() to do title sorts by (namespace, title)
3698 - *
 3699+ *
36993700 * @return Integer: result of string comparison, or namespace comparison
37003701 */
37013702 public static function compare( $a, $b ) {
@@ -3922,8 +3923,8 @@
39233924 // Spec: http://www.sixapart.com/pronet/docs/trackback_spec
39243925 return "<!--
39253926 <rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"
3926 - xmlns:dc=\"http://purl.org/dc/elements/1.1/\"
3927 - xmlns:trackback=\"http://madskills.com/public/xml/rss/module/trackback/\">
 3927+ xmlns:dc=\"http://purl.org/dc/elements/1.1/\"
 3928+ xmlns:trackback=\"http://madskills.com/public/xml/rss/module/trackback/\">
39283929 <rdf:Description
39293930 rdf:about=\"$url\"
39303931 dc:identifier=\"$url\"
@@ -4108,15 +4109,15 @@
41094110 */
41104111 public function getRestrictionTypes() {
41114112 global $wgRestrictionTypes;
4112 -
 4113+
41134114 $types = $this->exists() ? $wgRestrictionTypes : array( 'create' );
41144115
41154116 if ( $this->getNamespace() != NS_FILE ) {
41164117 $types = array_diff( $types, array( 'upload' ) );
41174118 }
4118 -
 4119+
41194120 wfRunHooks( 'TitleGetRestrictionTypes', array( $this, &$types ) );
4120 -
 4121+
41214122 return $types;
41224123 }
41234124
Index: trunk/phase3/includes/job/UploadFromUrlJob.php
@@ -8,7 +8,7 @@
99
1010 /**
1111 * Job for asynchronous upload-by-url.
12 - *
 12+ *
1313 * This job is in fact an interface to UploadFromUrl, which is designed such
1414 * that it does not require any globals. If it does, fix it elsewhere, do not
1515 * add globals in here.
@@ -17,7 +17,7 @@
1818 */
1919 class UploadFromUrlJob extends Job {
2020 const SESSION_KEYNAME = 'wsUploadFromUrlJobData';
21 -
 21+
2222 public $upload;
2323 protected $user;
2424
@@ -28,20 +28,20 @@
2929 public function run() {
3030 # Initialize this object and the upload object
3131 $this->upload = new UploadFromUrl();
32 - $this->upload->initialize(
33 - $this->title->getText(),
 32+ $this->upload->initialize(
 33+ $this->title->getText(),
3434 $this->params['url'],
3535 false
3636 );
3737 $this->user = User::newFromName( $this->params['userName'] );
38 -
 38+
3939 # Fetch the file
4040 $status = $this->upload->fetchFile();
4141 if ( !$status->isOk() ) {
4242 $this->leaveMessage( $status );
4343 return true;
4444 }
45 -
 45+
4646 # Verify upload
4747 $result = $this->upload->verifyUpload();
4848 if ( $result['status'] != UploadBase::OK ) {
@@ -49,17 +49,17 @@
5050 $this->leaveMessage( $status );
5151 return true;
5252 }
53 -
 53+
5454 # Check warnings
5555 if ( !$this->params['ignoreWarnings'] ) {
5656 $warnings = $this->upload->checkWarnings();
57 - if ( $warnings ) {
 57+ if ( $warnings ) {
5858 wfSetupSession( $this->params['sessionId'] );
59 -
 59+
6060 if ( $this->params['leaveMessage'] ) {
61 - $this->user->leaveUserMessage(
 61+ $this->user->leaveUserMessage(
6262 wfMsg( 'upload-warning-subj' ),
63 - wfMsg( 'upload-warning-msg',
 63+ wfMsg( 'upload-warning-msg',
6464 $this->params['sessionKey'],
6565 $this->params['url'] )
6666 );
@@ -67,17 +67,17 @@
6868 $this->storeResultInSession( 'Warning',
6969 'warnings', $warnings );
7070 }
71 -
 71+
7272 # Stash the upload in the session
7373 $this->upload->stashSession( $this->params['sessionKey'] );
7474 session_write_close();
75 -
 75+
7676 return true;
7777 }
7878 }
79 -
 79+
8080 # Perform the upload
81 - $status = $this->upload->performUpload(
 81+ $status = $this->upload->performUpload(
8282 $this->params['comment'],
8383 $this->params['pageText'],
8484 $this->params['watch'],
@@ -85,47 +85,47 @@
8686 );
8787 $this->leaveMessage( $status );
8888 return true;
89 -
 89+
9090 }
91 -
 91+
9292 /**
9393 * Leave a message on the user talk page or in the session according to
9494 * $params['leaveMessage'].
95 - *
 95+ *
9696 * @param $status Status
9797 */
9898 protected function leaveMessage( $status ) {
9999 if ( $this->params['leaveMessage'] ) {
100100 if ( $status->isGood() ) {
101101 $this->user->leaveUserMessage( wfMsg( 'upload-success-subj' ),
102 - wfMsg( 'upload-success-msg',
 102+ wfMsg( 'upload-success-msg',
103103 $this->upload->getTitle()->getText(),
104 - $this->params['url']
 104+ $this->params['url']
105105 ) );
106106 } else {
107107 $this->user->leaveUserMessage( wfMsg( 'upload-failure-subj' ),
108 - wfMsg( 'upload-failure-msg',
 108+ wfMsg( 'upload-failure-msg',
109109 $status->getWikiText(),
110110 $this->params['url']
111111 ) );
112112 }
113113 } else {
114 - wfSetupSession( $this->params['sessionId'] );
 114+ wfSetupSession( $this->params['sessionId'] );
115115 if ( $status->isOk() ) {
116 - $this->storeResultInSession( 'Success',
 116+ $this->storeResultInSession( 'Success',
117117 'filename', $this->upload->getLocalFile()->getName() );
118118 } else {
119119 $this->storeResultInSession( 'Failure',
120120 'errors', $status->getErrorsArray() );
121121 }
122 - session_write_close();
 122+ session_write_close();
123123 }
124124 }
125125
126126 /**
127127 * Store a result in the session data. Note that the caller is responsible
128128 * for appropriate session_start and session_write_close calls.
129 - *
 129+ *
130130 * @param $result String: the result (Success|Warning|Failure)
131131 * @param $dataKey String: the key of the extra data
132132 * @param $dataValue Mixed: the extra data itself
@@ -135,7 +135,7 @@
136136 $session['result'] = $result;
137137 $session[$dataKey] = $dataValue;
138138 }
139 -
 139+
140140 /**
141141 * Initialize the session data. Sets the intial result to queued.
142142 */
@@ -143,7 +143,7 @@
144144 $session =& self::getSessionData( $this->params['sessionKey'] );
145145 $$session['result'] = 'Queued';
146146 }
147 -
 147+
148148 public static function &getSessionData( $key ) {
149149 if ( !isset( $_SESSION[self::SESSION_KEYNAME][$key] ) ) {
150150 $_SESSION[self::SESSION_KEYNAME][$key] = array();
Index: trunk/phase3/includes/ConfEditor.php
@@ -1,6 +1,6 @@
22 <?php
33
4 -/**
 4+/**
55 * This is a state machine style parser with two internal stacks:
66 * * A next state stack, which determines the state the machine will progress to next
77 * * A path stack, which keeps track of the logical location in the file.
@@ -40,8 +40,8 @@
4141 /** The previous ConfEditorToken object */
4242 var $prevToken;
4343
44 - /**
45 - * The state machine stack. This is an array of strings where the topmost
 44+ /**
 45+ * The state machine stack. This is an array of strings where the topmost
4646 * element will be popped off and become the next parser state.
4747 */
4848 var $stateStack;
@@ -66,7 +66,7 @@
6767 var $pathStack;
6868
6969 /**
70 - * The elements of the top of the pathStack for every path encountered, indexed
 70+ * The elements of the top of the pathStack for every path encountered, indexed
7171 * by slash-separated path.
7272 */
7373 var $pathInfo;
@@ -77,7 +77,7 @@
7878 var $serial;
7979
8080 /**
81 - * Editor state. This consists of the internal copy/insert operations which
 81+ * Editor state. This consists of the internal copy/insert operations which
8282 * are applied to the source string to obtain the destination string.
8383 */
8484 var $edits;
@@ -103,7 +103,7 @@
104104 }
105105
106106 /**
107 - * Edit the text. Returns the edited text.
 107+ * Edit the text. Returns the edited text.
108108 * @param $ops Array of operations.
109109 *
110110 * Operations are given as an associative array, with members:
@@ -114,20 +114,20 @@
115115 *
116116 * delete
117117 * Deletes an array element or statement with the specified path.
118 - * e.g.
 118+ * e.g.
119119 * array('type' => 'delete', 'path' => '$foo/bar/baz' )
120120 * is equivalent to the runtime PHP code:
121121 * unset( $foo['bar']['baz'] );
122122 *
123123 * set
124 - * Sets the value of an array element. If the element doesn't exist, it
125 - * is appended to the array. If it does exist, the value is set, with
 124+ * Sets the value of an array element. If the element doesn't exist, it
 125+ * is appended to the array. If it does exist, the value is set, with
126126 * comments and indenting preserved.
127127 *
128128 * append
129129 * Appends a new element to the end of the array. Adds a trailing comma.
130130 * e.g.
131 - * array( 'type' => 'append', 'path', '$foo/bar',
 131+ * array( 'type' => 'append', 'path', '$foo/bar',
132132 * 'key' => 'baz', 'value' => "'x'" )
133133 * is like the PHP code:
134134 * $foo['bar']['baz'] = 'x';
@@ -187,7 +187,7 @@
188188 list( $indent, ) = $this->getIndent( $start );
189189 $textToInsert = "$indent$value,";
190190 } else {
191 - list( $indent, $arrowIndent ) =
 191+ list( $indent, $arrowIndent ) =
192192 $this->getIndent( $start, $key, $lastEltInfo['arrowByte'] );
193193 $textToInsert = "$indent$key$arrowIndent=> $value,";
194194 }
@@ -210,7 +210,7 @@
211211 list( $indent, ) = $this->getIndent( $start );
212212 $textToInsert = "$indent$value,";
213213 } else {
214 - list( $indent, $arrowIndent ) =
 214+ list( $indent, $arrowIndent ) =
215215 $this->getIndent( $start, $key, $info['arrowByte'] );
216216 $textToInsert = "$indent$key$arrowIndent=> $value,";
217217 }
@@ -239,13 +239,13 @@
240240 try {
241241 $this->parse();
242242 } catch ( ConfEditorParseError $e ) {
243 - throw new MWException(
 243+ throw new MWException(
244244 "Sorry, ConfEditor broke the file during editing and it won't parse anymore: " .
245245 $e->getMessage() );
246246 }
247247 return $out;
248248 }
249 -
 249+
250250 /**
251251 * Get the variables defined in the text
252252 * @return array( varname => value )
@@ -266,7 +266,7 @@
267267 strlen( $trimmedPath ) - strlen( $name ) );
268268 if( substr( $parentPath, -1 ) == '/' )
269269 $parentPath = substr( $parentPath, 0, -1 );
270 -
 270+
271271 $value = substr( $this->text, $data['valueStartByte'],
272272 $data['valueEndByte'] - $data['valueStartByte']
273273 );
@@ -275,7 +275,7 @@
276276 }
277277 return $vars;
278278 }
279 -
 279+
280280 /**
281281 * Set a value in an array, unless it's set already. For instance,
282282 * setVar( $arr, 'foo/bar', 'baz', 3 ); will set
@@ -298,7 +298,7 @@
299299 if ( !isset( $target[$key] ) )
300300 $target[$key] = $value;
301301 }
302 -
 302+
303303 /**
304304 * Parse a scalar value in PHP
305305 * @return mixed Parsed value
@@ -364,8 +364,8 @@
365365 }
366366
367367 /**
368 - * Finds the source byte region which you would want to delete, if $pathName
369 - * was to be deleted. Includes the leading spaces and tabs, the trailing line
 368+ * Finds the source byte region which you would want to delete, if $pathName
 369+ * was to be deleted. Includes the leading spaces and tabs, the trailing line
370370 * break, and any comments in between.
371371 */
372372 function findDeletionRegion( $pathName ) {
@@ -419,9 +419,9 @@
420420 }
421421
422422 /**
423 - * Find the byte region in the source corresponding to the value part.
424 - * This includes the quotes, but does not include the trailing comma
425 - * or semicolon.
 423+ * Find the byte region in the source corresponding to the value part.
 424+ * This includes the quotes, but does not include the trailing comma
 425+ * or semicolon.
426426 *
427427 * The end position is the past-the-end (end + 1) value as per convention.
428428 */
@@ -519,7 +519,7 @@
520520 }
521521
522522 /**
523 - * Run the parser on the text. Throws an exception if the string does not
 523+ * Run the parser on the text. Throws an exception if the string does not
524524 * match our defined subset of PHP syntax.
525525 */
526526 public function parse() {
@@ -706,7 +706,7 @@
707707 }
708708
709709 /**
710 - * Set the parse position. Do not call this except from firstToken() and
 710+ * Set the parse position. Do not call this except from firstToken() and
711711 * nextToken(), there is more to update than just the position.
712712 */
713713 protected function setPos( $pos ) {
@@ -800,7 +800,7 @@
801801 if ( $this->currentToken && $this->currentToken->type == $type ) {
802802 return $this->nextToken();
803803 } else {
804 - $this->error( "expected " . $this->getTypeName( $type ) .
 804+ $this->error( "expected " . $this->getTypeName( $type ) .
805805 ", got " . $this->getTypeName( $this->currentToken->type ) );
806806 }
807807 }
@@ -875,7 +875,7 @@
876876 }
877877
878878 /**
879 - * Go to the next path on the same level. This ends the current path and
 879+ * Go to the next path on the same level. This ends the current path and
880880 * starts a new one. If $path is \@next, the new path is set to the next
881881 * numeric array element.
882882 */
@@ -889,7 +889,7 @@
890890 } else {
891891 $this->pathStack[$i]['name'] = $path;
892892 }
893 - $this->pathStack[$i] =
 893+ $this->pathStack[$i] =
894894 array(
895895 'startByte' => $this->byteNum,
896896 'startToken' => $this->pos,
@@ -955,8 +955,8 @@
956956 }
957957
958958 /**
959 - * Looks ahead to see if the given type is the next token type, starting
960 - * from the current position plus the given offset. Skips any intervening
 959+ * Looks ahead to see if the given type is the next token type, starting
 960+ * from the current position plus the given offset. Skips any intervening
961961 * whitespace.
962962 */
963963 function isAhead( $type, $offset = 0 ) {
@@ -992,8 +992,8 @@
993993 $out = '';
994994 foreach ( $this->tokens as $token ) {
995995 $obj = $this->newTokenObj( $token );
996 - $out .= sprintf( "%-28s %s\n",
997 - $this->getTypeName( $obj->type ),
 996+ $out .= sprintf( "%-28s %s\n",
 997+ $this->getTypeName( $obj->type ),
998998 addcslashes( $obj->text, "\0..\37" ) );
999999 }
10001000 echo "<pre>" . htmlspecialchars( $out ) . "</pre>";
@@ -1008,7 +1008,7 @@
10091009 function __construct( $editor, $msg ) {
10101010 $this->lineNum = $editor->lineNum;
10111011 $this->colNum = $editor->colNum;
1012 - parent::__construct( "Parse error on line {$editor->lineNum} " .
 1012+ parent::__construct( "Parse error on line {$editor->lineNum} " .
10131013 "col {$editor->colNum}: $msg" );
10141014 }
10151015
@@ -1028,7 +1028,7 @@
10291029 */
10301030 class ConfEditorToken {
10311031 var $type, $text;
1032 -
 1032+
10331033 static $scalarTypes = array( T_LNUMBER, T_DNUMBER, T_STRING, T_CONSTANT_ENCAPSED_STRING );
10341034 static $skipTypes = array( T_WHITESPACE, T_COMMENT, T_DOC_COMMENT );
10351035
Index: trunk/phase3/includes/libs/JavaScriptDistiller.php
@@ -1,7 +1,7 @@
22 <?php
33 /**
44 * JavaScript Distiller
5 - *
 5+ *
66 * Author: Dean Edwards, Nicholas Martin, Trevor Parscal
77 * License: LGPL
88 */
@@ -11,10 +11,10 @@
1212
1313 /**
1414 * Removes most of the white-space from JavaScript code.
15 - *
 15+ *
1616 * This code came from the first pass of Dean Edwards' JavaScript Packer. Compared to using
1717 * JSMin::minify, this produces < 1% larger output (after gzip) in approx. 25% of the time.
18 - *
 18+ *
1919 * @param $script String: JavaScript code to minify
2020 * @param $stripVerticalSpace Boolean: Try to remove as much vertical whitespace as possible
2121 */
@@ -60,7 +60,7 @@
6161
6262 /*
6363 * Creates an instance of ParseMaster and protects sensitive JavaScript regions.
64 - *
 64+ *
6565 * This parser is based on regular expressions, which all get or'd together, so rules take
6666 * precedence in the order they are added. We can use it to minify by armoring certain regions
6767 * by matching them and replacing them with the full match, leaving the remaining regions around
@@ -94,23 +94,23 @@
9595 * ParseMaster, version 1.0.2 (2005-08-19) Copyright 2005, Dean Edwards
9696 * A multi-pattern parser.
9797 * License: http://creativecommons.org/licenses/LGPL/2.1/
98 - *
 98+ *
9999 * This is the PHP version of the ParseMaster component of Dean Edwards' (http://dean.edwards.name/)
100100 * Packer, which was originally written in JavaScript. It was ported to PHP by Nicolas Martin.
101 - *
 101+ *
102102 * Original Source: http://joliclic.free.fr/php/javascript-packer/en/
103 - *
 103+ *
104104 * Changes should be pushed back upstream.
105105 */
106106 class ParseMaster {
107107 public $ignoreCase = false;
108108 public $escapeChar = '';
109 -
 109+
110110 // constants
111111 const EXPRESSION = 0;
112112 const REPLACEMENT = 1;
113113 const LENGTH = 2;
114 -
 114+
115115 // used to determine nesting levels
116116 private $GROUPS = '/\\(/';//g
117117 private $SUB_REPLACE = '/\\$\\d/';
@@ -119,12 +119,12 @@
120120 private $ESCAPE = '/\\\./';//g
121121 private $QUOTE = '/\'/';
122122 private $DELETED = '/\\x01[^\\x01]*\\x01/';//g
123 -
 123+
124124 public function add($expression, $replacement = '') {
125125 // count the number of sub-expressions
126126 // - add one because each pattern is itself a sub-expression
127127 $length = 1 + preg_match_all($this->GROUPS, $this->_internalEscape((string)$expression), $out);
128 -
 128+
129129 // treat only strings $replacement
130130 if (is_string($replacement)) {
131131 // does the pattern deal with sub-expressions?
@@ -136,7 +136,7 @@
137137 } else { // a complicated lookup (e.g. "Hello $2 $1")
138138 // build a function to do the lookup
139139 $quote = preg_match($this->QUOTE, $this->_internalEscape($replacement))
140 - ? '"' : "'";
 140+ ? '"' : "'";
141141 $replacement = array(
142142 'fn' => '_backReferences',
143143 'data' => array(
@@ -152,11 +152,11 @@
153153 if (!empty($expression)) $this->_add($expression, $replacement, $length);
154154 else $this->_add('/^$/', $replacement, $length);
155155 }
156 -
 156+
157157 public function exec($string) {
158158 // execute the global replacement
159159 $this->_escaped = array();
160 -
 160+
161161 // simulate the _patterns.toSTring of Dean
162162 $regexp = '/';
163163 foreach ($this->_patterns as $reg) {
@@ -164,7 +164,7 @@
165165 }
166166 $regexp = substr($regexp, 0, -1) . '/S';
167167 $regexp .= ($this->ignoreCase) ? 'i' : '';
168 -
 168+
169169 $string = $this->_escape($string, $this->escapeChar);
170170 $string = preg_replace_callback(
171171 $regexp,
@@ -175,10 +175,10 @@
176176 $string
177177 );
178178 $string = $this->_unescape($string, $this->escapeChar);
179 -
 179+
180180 return preg_replace($this->DELETED, '', $string);
181181 }
182 -
 182+
183183 public function reset() {
184184 // clear the patterns collection so that this object may be re-used
185185 $this->_patterns = array();
@@ -187,17 +187,17 @@
188188 // private
189189 private $_escaped = array(); // escaped characters
190190 private $_patterns = array(); // patterns stored by index
191 -
 191+
192192 // create and add a new pattern to the patterns collection
193193 private function _add() {
194194 $arguments = func_get_args();
195195 $this->_patterns[] = $arguments;
196196 }
197 -
 197+
198198 // this is the global replace function (it's quite complicated)
199199 private function _replacement($arguments) {
200200 if (empty($arguments)) return '';
201 -
 201+
202202 $i = 1; $j = 0;
203203 // loop through the patterns
204204 while (isset($this->_patterns[$j])) {
@@ -205,28 +205,28 @@
206206 // do we have a result?
207207 if (isset($arguments[$i]) && ($arguments[$i] != '')) {
208208 $replacement = $pattern[self::REPLACEMENT];
209 -
 209+
210210 if (is_array($replacement) && isset($replacement['fn'])) {
211 -
 211+
212212 if (isset($replacement['data'])) $this->buffer = $replacement['data'];
213213 return call_user_func(array(&$this, $replacement['fn']), $arguments, $i);
214 -
 214+
215215 } elseif (is_int($replacement)) {
216216 return $arguments[$replacement + $i];
217 -
 217+
218218 }
219219 $delete = ($this->escapeChar == '' ||
220 - strpos($arguments[$i], $this->escapeChar) === false)
221 - ? '' : "\x01" . $arguments[$i] . "\x01";
 220+ strpos($arguments[$i], $this->escapeChar) === false)
 221+ ? '' : "\x01" . $arguments[$i] . "\x01";
222222 return $delete . $replacement;
223 -
 223+
224224 // skip over references to sub-expressions
225225 } else {
226226 $i += $pattern[self::LENGTH];
227227 }
228228 }
229229 }
230 -
 230+
231231 private function _backReferences($match, $offset) {
232232 $replacement = $this->buffer['replacement'];
233233 $quote = $this->buffer['quote'];
@@ -236,22 +236,22 @@
237237 }
238238 return $replacement;
239239 }
240 -
 240+
241241 private function _replace_name($match, $offset){
242242 $length = strlen($match[$offset + 2]);
243243 $start = $length - max($length - strlen($match[$offset + 3]), 0);
244244 return substr($match[$offset + 1], $start, $length) . $match[$offset + 4];
245245 }
246 -
 246+
247247 private function _replace_encoded($match, $offset) {
248248 return $this->buffer[$match[$offset]];
249249 }
250 -
251 -
 250+
 251+
252252 // php : we cannot pass additional data to preg_replace_callback,
253253 // and we cannot use &$this in create_function, so let's go to lower level
254254 private $buffer;
255 -
 255+
256256 // encode escaped characters
257257 private function _escape($string, $escapeChar) {
258258 if ($escapeChar) {
@@ -261,7 +261,7 @@
262262 array(&$this, '_escapeBis'),
263263 $string
264264 );
265 -
 265+
266266 } else {
267267 return $string;
268268 }
@@ -270,7 +270,7 @@
271271 $this->_escaped[] = $match[1];
272272 return $this->buffer;
273273 }
274 -
 274+
275275 // decode escaped characters
276276 private function _unescape($string, $escapeChar) {
277277 if ($escapeChar) {
@@ -282,7 +282,7 @@
283283 array(&$this, '_unescapeBis'),
284284 $string
285285 );
286 -
 286+
287287 } else {
288288 return $string;
289289 }
@@ -298,7 +298,7 @@
299299 $this->buffer['i']++;
300300 return $this->buffer['escapeChar'] . $temp;
301301 }
302 -
 302+
303303 private function _internalEscape($string) {
304304 return preg_replace($this->ESCAPE, '', $string);
305305 }
Index: trunk/phase3/includes/DefaultSettings.php
@@ -443,11 +443,11 @@
444444 $wgAllowAsyncCopyUploads = false;
445445
446446 /**
447 - * Max size for uploads, in bytes. If not set to an array, applies to all
 447+ * Max size for uploads, in bytes. If not set to an array, applies to all
448448 * uploads. If set to an array, per upload type maximums can be set, using the
449449 * file and url keys. If the * key is set this value will be used as maximum
450450 * for non-specified types.
451 - *
 451+ *
452452 * For example:
453453 * $wgUploadSize = array(
454454 * '*' => 250 * 1024,
@@ -455,7 +455,7 @@
456456 * );
457457 * Sets the maximum for all uploads to 250 kB except for upload-by-url, which
458458 * will have a maximum of 500 kB.
459 - *
 459+ *
460460 */
461461 $wgMaxUploadSize = 1024*1024*100; # 100MB
462462
@@ -559,7 +559,7 @@
560560 # MS Office OpenXML and other Open Package Conventions files are zip files
561561 # and thus blacklisted just as other zip files. If you remove these entries
562562 # from the blacklist in your local configuration, a malicious file upload
563 - # will be able to compromise the wiki's user accounts, and the user
 563+ # will be able to compromise the wiki's user accounts, and the user
564564 # accounts of any other website in the same cookie domain.
565565 'application/x-opc+zip',
566566 'application/msword',
@@ -1697,9 +1697,9 @@
16981698 * to setting $wgCacheEpoch to the modification time of LocalSettings.php, as
16991699 * was previously done in the default LocalSettings.php file.
17001700 *
1701 - * On high-traffic wikis, this should be set to false, to avoid the need to
 1701+ * On high-traffic wikis, this should be set to false, to avoid the need to
17021702 * check the file modification time, and to avoid the performance impact of
1703 - * unnecessary cache invalidations.
 1703+ * unnecessary cache invalidations.
17041704 */
17051705 $wgInvalidateCacheOnLocalSettingsChange = true;
17061706
@@ -2293,7 +2293,7 @@
22942294 $wgBreakFrames = false;
22952295
22962296 /**
2297 - * The X-Frame-Options header to send on pages sensitive to clickjacking
 2297+ * The X-Frame-Options header to send on pages sensitive to clickjacking
22982298 * attacks, such as edit pages. This prevents those pages from being displayed
22992299 * in a frame or iframe. The options are:
23002300 *
@@ -2303,9 +2303,9 @@
23042304 * to allow framing within a trusted domain. This is insecure if there
23052305 * is a page on the same domain which allows framing of arbitrary URLs.
23062306 *
2307 - * - false: Allow all framing. This opens up the wiki to XSS attacks and thus
2308 - * full compromise of local user accounts. Private wikis behind a
2309 - * corporate firewall are especially vulnerable. This is not
 2307+ * - false: Allow all framing. This opens up the wiki to XSS attacks and thus
 2308+ * full compromise of local user accounts. Private wikis behind a
 2309+ * corporate firewall are especially vulnerable. This is not
23102310 * recommended.
23112311 *
23122312 * For extra safety, set $wgBreakFrames = true, to prevent framing on all pages,
@@ -2334,17 +2334,17 @@
23352335 * You can add new icons to the built in copyright or poweredby, or you can create
23362336 * a new block. Though note that you may need to add some custom css to get good styling
23372337 * of new blocks in monobook. vector and modern should work without any special css.
2338 - *
 2338+ *
23392339 * $wgFooterIcons itself is a key/value array.
2340 - * The key is the name of a block that the icons will be wrapped in. The final id varies
2341 - * by skin; Monobook and Vector will turn poweredby into f-poweredbyico while Modern
 2340+ * The key is the name of a block that the icons will be wrapped in. The final id varies
 2341+ * by skin; Monobook and Vector will turn poweredby into f-poweredbyico while Modern
23422342 * turns it into mw_poweredby.
23432343 * The value is either key/value array of icons or a string.
23442344 * In the key/value array the key may or may not be used by the skin but it can
23452345 * be used to find the icon and unset it or change the icon if needed.
23462346 * This is useful for disabling icons that are set by extensions.
2347 - * The value should be either a string or an array. If it is a string it will be output
2348 - * directly as html, however some skins may choose to ignore it. An array is the preferred format
 2347+ * The value should be either a string or an array. If it is a string it will be output
 2348+ * directly as html, however some skins may choose to ignore it. An array is the preferred format
23492349 * for the icon, the following keys are used:
23502350 * src: An absolute url to the image to use for the icon, this is recommended
23512351 * but not required, however some skins will ignore icons without an image
@@ -3373,7 +3373,7 @@
33743374 * Set of available actions that can be restricted via action=protect
33753375 * You probably shouldn't change this.
33763376 * Translated through restriction-* messages.
3377 - * Title::getRestrictionTypes() will remove restrictions that are not
 3377+ * Title::getRestrictionTypes() will remove restrictions that are not
33783378 * applicable to a specific title (upload currently)
33793379 */
33803380 $wgRestrictionTypes = array( 'edit', 'move', 'upload' );
@@ -4185,12 +4185,12 @@
41864186 $wgReadOnlyFile = false;
41874187
41884188 /**
4189 - * When you run the web-based upgrade utility, it will tell you what to set
 4189+ * When you run the web-based upgrade utility, it will tell you what to set
41904190 * this to in order to authorize the upgrade process. It will subsequently be
41914191 * used as a password, to authorize further upgrades.
41924192 *
4193 - * For security, do not set this to a guessable string. Use the value supplied
4194 - * by the install/upgrade process. To cause the upgrader to generate a new key,
 4193+ * For security, do not set this to a guessable string. Use the value supplied
 4194+ * by the install/upgrade process. To cause the upgrader to generate a new key,
41954195 * delete the old key from LocalSettings.php.
41964196 */
41974197 $wgUpgradeKey = false;
@@ -4636,24 +4636,24 @@
46374637 $wgCategoryPagingLimit = 200;
46384638
46394639 /**
4640 - * Specify how category names should be sorted, when listed on a category page.
 4640+ * Specify how category names should be sorted, when listed on a category page.
46414641 * A sorting scheme is also known as a collation.
46424642 *
46434643 * Available values are:
46444644 *
46454645 * - uppercase: Converts the category name to upper case, and sorts by that.
46464646 *
4647 - * - uca-default: Provides access to the Unicode Collation Algorithm with
 4647+ * - uca-default: Provides access to the Unicode Collation Algorithm with
46484648 * the default element table. This is a compromise collation which sorts
46494649 * all languages in a mediocre way. However, it is better than "uppercase".
46504650 *
4651 - * To use the uca-default collation, you must have PHP's intl extension
4652 - * installed. See http://php.net/manual/en/intl.setup.php . The details of the
4653 - * resulting collation will depend on the version of ICU installed on the
 4651+ * To use the uca-default collation, you must have PHP's intl extension
 4652+ * installed. See http://php.net/manual/en/intl.setup.php . The details of the
 4653+ * resulting collation will depend on the version of ICU installed on the
46544654 * server.
46554655 *
46564656 * After you change this, you must run maintenance/updateCollation.php to fix
4657 - * the sort keys in the database.
 4657+ * the sort keys in the database.
46584658 */
46594659 $wgCategoryCollation = 'uppercase';
46604660
Index: trunk/phase3/includes/specials/SpecialRevisiondelete.php
@@ -168,13 +168,13 @@
169169 $this->typeInfo = self::$allowedTypes[$this->typeName];
170170
171171 # If we have revisions, get the title from the first one
172 - # since they should all be from the same page. This allows
 172+ # since they should all be from the same page. This allows
173173 # for more flexibility with page moves...
174174 if( $this->typeName == 'revision' ) {
175175 $rev = Revision::newFromId( $this->ids[0] );
176176 $this->targetObj = $rev ? $rev->getTitle() : $this->targetObj;
177177 }
178 -
 178+
179179 $this->otherReason = $wgRequest->getVal( 'wpReason' );
180180 # We need a target page!
181181 if( is_null($this->targetObj) ) {
@@ -201,7 +201,7 @@
202202 } else {
203203 $this->showForm();
204204 }
205 -
 205+
206206 $qc = $this->getLogQueryCond();
207207 # Show relevant lines from the deletion log
208208 $wgOut->addHTML( "<h2>" . htmlspecialchars( LogPage::logName( 'delete' ) ) . "</h2>\n" );
@@ -337,7 +337,7 @@
338338 }
339339
340340 /**
341 - * Show a list of items that we will operate on, and show a form with checkboxes
 341+ * Show a list of items that we will operate on, and show a form with checkboxes
342342 * which will allow the user to choose new visibility settings.
343343 */
344344 protected function showForm() {
@@ -373,7 +373,7 @@
374374 $wgOut->showErrorPage( 'revdelete-nooldid-title', 'revdelete-nooldid-text' );
375375 return;
376376 }
377 -
 377+
378378 $wgOut->addHTML( "</ul>" );
379379 // Explanation text
380380 $this->addUsageText();
@@ -384,7 +384,7 @@
385385 // Show form if the user can submit
386386 if( $this->mIsAllowed ) {
387387 $out = Xml::openElement( 'form', array( 'method' => 'post',
388 - 'action' => $this->getTitle()->getLocalUrl( array( 'action' => 'submit' ) ),
 388+ 'action' => $this->getTitle()->getLocalUrl( array( 'action' => 'submit' ) ),
389389 'id' => 'mw-revdel-form-revisions' ) ) .
390390 Xml::fieldset( wfMsg( 'revdelete-legend' ) ) .
391391 $this->buildCheckBoxes() .
@@ -453,7 +453,7 @@
454454 $wgOut->addWikiMsg( 'revdelete-confirm' );
455455 }
456456 }
457 -
 457+
458458 /**
459459 * @return String: HTML
460460 */
@@ -503,7 +503,7 @@
504504 $html .= "<tr>$line</tr>\n";
505505 }
506506 }
507 -
 507+
508508 $html .= '</table>';
509509 return $html;
510510 }
@@ -586,7 +586,7 @@
587587 }
588588 return $bitfield;
589589 }
590 -
 590+
591591 /**
592592 * Put together a rev_deleted bitfield
593593 * @param $bitPars array extractBitParams() params
Index: trunk/phase3/includes/QueryPage.php
@@ -130,7 +130,7 @@
131131 function getQueryInfo() {
132132 return null;
133133 }
134 -
 134+
135135 /**
136136 * For back-compat, subclasses may return a raw SQL query here, as a string.
137137 * This is stronly deprecated; getQueryInfo() should be overridden instead.
@@ -274,7 +274,7 @@
275275 if ( !$this->isCacheable() ) {
276276 return 0;
277277 }
278 -
 278+
279279 $fname = get_class( $this ) . '::recache';
280280 $dbw = wfGetDB( DB_MASTER );
281281 $dbr = wfGetDB( DB_SLAVE, array( $this->getName(), __METHOD__, 'vslow' ) );
Index: trunk/phase3/includes/SpecialPage.php
@@ -660,7 +660,7 @@
661661 }
662662 }
663663 if ( !$found ) {
664 - wfWarn( "Did not find alias for special page '$name'. " .
 664+ wfWarn( "Did not find alias for special page '$name'. " .
665665 "Perhaps no aliases are defined for it?" );
666666 }
667667 }
Index: trunk/phase3/includes/LinkCache.php
@@ -150,7 +150,7 @@
151151 wfProfileOut( __METHOD__ );
152152 return 0;
153153 }
154 -
 154+
155155 # Some fields heavily used for linking...
156156 if ( $this->mForUpdate ) {
157157 $db = wfGetDB( DB_MASTER );
@@ -164,7 +164,7 @@
165165 $options = array();
166166 }
167167
168 - $s = $db->selectRow( 'page',
 168+ $s = $db->selectRow( 'page',
169169 array( 'page_id', 'page_len', 'page_is_redirect', 'page_latest' ),
170170 array( 'page_namespace' => $nt->getNamespace(), 'page_title' => $nt->getDBkey() ),
171171 __METHOD__, $options );
Index: trunk/phase3/languages/Language.php
@@ -2730,11 +2730,11 @@
27312731 function getPreferredVariant() {
27322732 return $this->mConverter->getPreferredVariant();
27332733 }
2734 -
 2734+
27352735 function getDefaultVariant() {
27362736 return $this->mConverter->getDefaultVariant();
27372737 }
2738 -
 2738+
27392739 function getURLVariant() {
27402740 return $this->mConverter->getURLVariant();
27412741 }

Status & tagging log