http://www.mediawiki.org/wiki/Special:Code/MediaWiki/99814
Revision: 99814
Author: reedy
Date: 2011-10-14 21:28:59 +0000 (Fri, 14 Oct 2011)
Log Message:
-----------
Fix more comments
Modified Paths:
--------------
trunk/extensions/Collection/Collection.body.php
trunk/extensions/Collection/Collection.hooks.php
trunk/extensions/Collection/Collection.php
trunk/extensions/Collection/Collection.session.php
trunk/extensions/Collection/Collection.suggest.php
trunk/extensions/Collection/Collection.templates.php
trunk/extensions/FlaggedRevs/api/actions/ApiReview.php
trunk/extensions/FlaggedRevs/api/actions/ApiReviewActivity.php
trunk/extensions/FlaggedRevs/api/actions/ApiStabilize.php
trunk/extensions/FlaggedRevs/api/reports/ApiFlagConfig.php
trunk/extensions/FlaggedRevs/api/reports/ApiQueryConfiguredPages.php
trunk/extensions/FlaggedRevs/api/reports/ApiQueryFlagged.php
trunk/extensions/FlaggedRevs/api/reports/ApiQueryOldreviewedpages.php
trunk/extensions/FlaggedRevs/api/reports/ApiQueryReviewedpages.php
trunk/extensions/FlaggedRevs/api/reports/ApiQueryUnreviewedpages.php
trunk/extensions/LiquidThreads/api/ApiFeedLQTThreads.php
trunk/extensions/OpenSearchXml/ApiOpenSearchXml.php
trunk/extensions/OpenSearchXml/OpenSearchXml.php
trunk/extensions/PrefSwitch/PrefSwitch.classes.php
trunk/extensions/ProofreadPage/ApiQueryProofread.php
trunk/extensions/WikiLove/WikiLove.local.php
trunk/extensions/Wikimania/Wikimania.php
trunk/extensions/Wikimania/backend/Wikimania.php
trunk/extensions/Wikimania/backend/WikimaniaRegistration.php
trunk/extensions/Wikimania/specials/SpecialCheckWikimaniaStatus.php
trunk/extensions/Wikimania/specials/SpecialRegisterForWikimania.php
trunk/extensions/WikimediaMaintenance/cleanupTitles64966.php
Modified: trunk/extensions/Collection/Collection.body.php
===================================================================
--- trunk/extensions/Collection/Collection.body.php 2011-10-14 21:27:43 UTC
(rev 99813)
+++ trunk/extensions/Collection/Collection.body.php 2011-10-14 21:28:59 UTC
(rev 99814)
@@ -1,5 +1,5 @@
<?php
-/*
+/**
* Collection Extension for MediaWiki
*
* Copyright (C) PediaPress GmbH
@@ -1050,8 +1050,8 @@
$template = new CollectionRenderingTemplate();
$template->set( 'status', $status );
- if ( !isset( $response['status']['progress'] ) ) {
- $response['status']['progress'] = 1.00;
+ if ( !isset( $response['status']['progress'] ) ) {
+ $response['status']['progress'] = 1.00;
}
$template->set( 'progress',
$response['status']['progress'] );
$wgOut->addTemplate( $template );
@@ -1073,13 +1073,13 @@
function download() {
global $wgOut, $wgRequest, $wgCollectionContentTypeToFilename;
-
+
$tempfile = tmpfile();
$r = self::mwServeCommand( 'render_status', array(
'collection_id' => $wgRequest->getVal( 'collection_id'
),
'writer' => $wgRequest->getVal( 'writer' ),
) );
-
+
$info = false;
if ( isset( $r['url'] ) ) {
$result = Http::get( $r['url'] );
Modified: trunk/extensions/Collection/Collection.hooks.php
===================================================================
--- trunk/extensions/Collection/Collection.hooks.php 2011-10-14 21:27:43 UTC
(rev 99813)
+++ trunk/extensions/Collection/Collection.hooks.php 2011-10-14 21:28:59 UTC
(rev 99814)
@@ -1,5 +1,5 @@
<?php
-/*
+/**
* Collection Extension for MediaWiki
*
* Copyright (C) PediaPress GmbH
Modified: trunk/extensions/Collection/Collection.php
===================================================================
--- trunk/extensions/Collection/Collection.php 2011-10-14 21:27:43 UTC (rev
99813)
+++ trunk/extensions/Collection/Collection.php 2011-10-14 21:28:59 UTC (rev
99814)
@@ -1,6 +1,6 @@
<?php
-/*
+/**
* Collection Extension for MediaWiki
*
* Copyright (C) PediaPress GmbH
Modified: trunk/extensions/Collection/Collection.session.php
===================================================================
--- trunk/extensions/Collection/Collection.session.php 2011-10-14 21:27:43 UTC
(rev 99813)
+++ trunk/extensions/Collection/Collection.session.php 2011-10-14 21:28:59 UTC
(rev 99814)
@@ -1,6 +1,6 @@
<?php
-/*
+/**
* Collection Extension for MediaWiki
*
* Copyright (C) PediaPress GmbH
Modified: trunk/extensions/Collection/Collection.suggest.php
===================================================================
--- trunk/extensions/Collection/Collection.suggest.php 2011-10-14 21:27:43 UTC
(rev 99813)
+++ trunk/extensions/Collection/Collection.suggest.php 2011-10-14 21:28:59 UTC
(rev 99814)
@@ -1,6 +1,6 @@
<?php
-/*
+/**
* Collection Extension for MediaWiki
*
* Copyright (C) 2008-2009, PediaPress GmbH
@@ -21,7 +21,7 @@
* http://www.gnu.org/copyleft/gpl.html
*/
-/*
+/**
* Class: CollectionSuggest
*
* This class contains only static methods, so theres no need for a
constructer.
@@ -215,9 +215,9 @@
}
}
-/*
+/**
* class: Proposals
- *
+ *
* it needs 3 Lists:
* - one with the bookmembers
* - one where it can save the banned articles
@@ -229,8 +229,8 @@
* links of that article as second dimension can be accessed with the method
* getLinkList()
*
- *
*
+ *
* the Class can only sort the proposals, if it can access the function
compareProps
*/
class Proposals {
@@ -240,20 +240,20 @@
* class attributes
* ==================================================
*
- * only mLinkList and mPropList can be accessed from
+ * only mLinkList and mPropList can be accessed from
* outside the class via getLinkList() and getPropsosals()
*/
private $mColl;
private $mPropList;
private $mLinkList;
private $mBanList;
-
+
/*
* ==================================================
* constructor
* ==================================================
- *
- * @param $coll the collection
+ *
+ * @param $coll the collection
* @param $ban the list of the banned articles
* @param $props the lilst of the proposals
*/
@@ -291,7 +291,7 @@
* default is true
* @return a 2-dimensional array that contains the proposals
* the first dimesion is numeric, the second contains
- * 3 entries:
+ * 3 entries:
* - 'name': the name of a proposed article
* - 'num' : how often this artikel was linked in the
* bookmembers
@@ -302,7 +302,7 @@
if ( $doUpdate ) {
$this->updateLinkList();
}
-
+
$this->getPropList();
if ( $num > 0 ) {
@@ -405,7 +405,7 @@
if ( preg_match( '/[:#]/', $link ) ) { // skip links
with ':' and '#'
continue;
}
-
+
// handle links with a displaytitle
$matches = array();
if ( preg_match( '/(.+?)\|(.+)/', $link, $matches ) ) {
@@ -456,7 +456,7 @@
}
}
}
-
+
if ( count( $linkcount ) == 0 ) {
return array();
}
@@ -570,10 +570,10 @@
}
}
-/*
+/**
* sort $mPropList by the entries values
* sort alphabetically by equal values
- *
+ *
* @param $a, $b: arrays that contain two entries
* the keys: 'name' & 'val'
* 'name': an articlename
Modified: trunk/extensions/Collection/Collection.templates.php
===================================================================
--- trunk/extensions/Collection/Collection.templates.php 2011-10-14
21:27:43 UTC (rev 99813)
+++ trunk/extensions/Collection/Collection.templates.php 2011-10-14
21:28:59 UTC (rev 99814)
@@ -293,7 +293,7 @@
<input name="append" type="submit" value="<?php $this->msg(
'coll-append' ) ?>" />
<input name="cancel" type="submit" value="<?php $this->msg(
'coll-cancel' ) ?>" />
<input name="bookcmd" type="hidden" value="load_collection" />
- <input name="colltitle" type="hidden" value="<?php echo
htmlspecialchars( $this->data['title']->getPrefixedText() ) ?>" />
+ <input name="colltitle" type="hidden" value="<?php echo
htmlspecialchars( $this->data['title']->getPrefixedText() ) ?>" />
</form>
<?php
@@ -399,9 +399,9 @@
}
}
-/*
+/**
* Template for suggest feature
- *
+ *
* It needs the two methods getProposalList() and getMemberList()
* to run with Ajax
*/
@@ -451,7 +451,7 @@
$prop = $this->data['proposals'];
$out = '';
-
+
$num = count( $prop );
if ( $num == 0 ) {
return "<li>" . wfMsgHtml( 'coll-suggest_empty' ) .
"</li>";
Modified: trunk/extensions/FlaggedRevs/api/actions/ApiReview.php
===================================================================
--- trunk/extensions/FlaggedRevs/api/actions/ApiReview.php 2011-10-14
21:27:43 UTC (rev 99813)
+++ trunk/extensions/FlaggedRevs/api/actions/ApiReview.php 2011-10-14
21:28:59 UTC (rev 99814)
@@ -1,6 +1,6 @@
<?php
-/*
+/**
* Created on Dec 20, 2008
*
* API module for MediaWiki's FlaggedRevs extension
@@ -132,14 +132,14 @@
$this->dieUsage( "Provided page is not
reviewable.", 'notreviewable' );
} elseif ( $status === 'review_page_notexists' ) {
$this->dieUsage( "Provided page does not
exist.", 'notarget' );
- }
+ }
}
}
public function mustBePosted() {
return true;
}
-
+
public function isWriteMode() {
return true;
}
Modified: trunk/extensions/FlaggedRevs/api/actions/ApiReviewActivity.php
===================================================================
--- trunk/extensions/FlaggedRevs/api/actions/ApiReviewActivity.php
2011-10-14 21:27:43 UTC (rev 99813)
+++ trunk/extensions/FlaggedRevs/api/actions/ApiReviewActivity.php
2011-10-14 21:28:59 UTC (rev 99814)
@@ -1,6 +1,6 @@
<?php
-/*
+/**
* Created on June 13, 2011
*
* API module for MediaWiki's FlaggedRevs extension
Modified: trunk/extensions/FlaggedRevs/api/actions/ApiStabilize.php
===================================================================
--- trunk/extensions/FlaggedRevs/api/actions/ApiStabilize.php 2011-10-14
21:27:43 UTC (rev 99813)
+++ trunk/extensions/FlaggedRevs/api/actions/ApiStabilize.php 2011-10-14
21:28:59 UTC (rev 99814)
@@ -1,6 +1,6 @@
<?php
-/*
+/**
* Created on Sep 19, 2009
*
* API module for MediaWiki's FlaggedRevs extension
Modified: trunk/extensions/FlaggedRevs/api/reports/ApiFlagConfig.php
===================================================================
--- trunk/extensions/FlaggedRevs/api/reports/ApiFlagConfig.php 2011-10-14
21:27:43 UTC (rev 99813)
+++ trunk/extensions/FlaggedRevs/api/reports/ApiFlagConfig.php 2011-10-14
21:28:59 UTC (rev 99814)
@@ -1,6 +1,6 @@
<?php
-/*
+/**
* Created on November 6, 2009
*
* API module for MediaWiki's FlaggedRevs extension
@@ -50,7 +50,7 @@
public function mustBePosted() {
return false;
}
-
+
public function isWriteMode() {
return false;
}
@@ -58,7 +58,7 @@
public function getAllowedParams() {
return array();
}
-
+
public function getParamDescription() {
return array();
}
@@ -79,7 +79,7 @@
public function getExamples() {
return 'api.php?action=flagconfig';
}
-
+
public function getVersion() {
return __CLASS__ . ': $Id$';
}
Modified: trunk/extensions/FlaggedRevs/api/reports/ApiQueryConfiguredPages.php
===================================================================
--- trunk/extensions/FlaggedRevs/api/reports/ApiQueryConfiguredPages.php
2011-10-14 21:27:43 UTC (rev 99813)
+++ trunk/extensions/FlaggedRevs/api/reports/ApiQueryConfiguredPages.php
2011-10-14 21:28:59 UTC (rev 99814)
@@ -1,6 +1,6 @@
<?php
-/*
+/**
* Created on April 8, 2011
*
* API module for MediaWiki's FlaggedRevs extension
Modified: trunk/extensions/FlaggedRevs/api/reports/ApiQueryFlagged.php
===================================================================
--- trunk/extensions/FlaggedRevs/api/reports/ApiQueryFlagged.php
2011-10-14 21:27:43 UTC (rev 99813)
+++ trunk/extensions/FlaggedRevs/api/reports/ApiQueryFlagged.php
2011-10-14 21:28:59 UTC (rev 99814)
@@ -1,6 +1,6 @@
<?php
-/*
+/**
* Created on Sep 17, 2008
*
* API module for MediaWiki's FlaggedRevs extension
@@ -34,7 +34,7 @@
if ( !$pageids ) {
return true;
}
-
+
// Construct SQL Query
$this->addTables( 'flaggedpages' );
$this->addFields( array(
@@ -82,7 +82,7 @@
'api.php?action=query&generator=allpages&gapfrom=K&prop=flagged'
);
}
-
+
public function getVersion() {
return __CLASS__ . ': $Id$';
}
Modified: trunk/extensions/FlaggedRevs/api/reports/ApiQueryOldreviewedpages.php
===================================================================
--- trunk/extensions/FlaggedRevs/api/reports/ApiQueryOldreviewedpages.php
2011-10-14 21:27:43 UTC (rev 99813)
+++ trunk/extensions/FlaggedRevs/api/reports/ApiQueryOldreviewedpages.php
2011-10-14 21:28:59 UTC (rev 99814)
@@ -1,6 +1,6 @@
<?php
-/*
+/**
* Created on Sep 17, 2008
*
* API module for MediaWiki's FlaggedRevs extension
@@ -240,7 +240,7 @@
'
api.php?action=query&generator=oldreviewedpages&gorlimit=4&prop=info',
);
}
-
+
public function getVersion() {
return __CLASS__ . ': $Id$';
}
Modified: trunk/extensions/FlaggedRevs/api/reports/ApiQueryReviewedpages.php
===================================================================
--- trunk/extensions/FlaggedRevs/api/reports/ApiQueryReviewedpages.php
2011-10-14 21:27:43 UTC (rev 99813)
+++ trunk/extensions/FlaggedRevs/api/reports/ApiQueryReviewedpages.php
2011-10-14 21:28:59 UTC (rev 99814)
@@ -1,6 +1,6 @@
<?php
-/*
+/**
* Created on June 29, 2009
*
* API module for MediaWiki's FlaggedRevs extension
@@ -198,7 +198,7 @@
'
api.php?action=query&generator=reviewedpages&grplimit=4&prop=info',
);
}
-
+
public function getVersion() {
return __CLASS__ . ': $Id$';
}
Modified: trunk/extensions/FlaggedRevs/api/reports/ApiQueryUnreviewedpages.php
===================================================================
--- trunk/extensions/FlaggedRevs/api/reports/ApiQueryUnreviewedpages.php
2011-10-14 21:27:43 UTC (rev 99813)
+++ trunk/extensions/FlaggedRevs/api/reports/ApiQueryUnreviewedpages.php
2011-10-14 21:28:59 UTC (rev 99814)
@@ -1,6 +1,6 @@
<?php
-/*
+/**
* Created on June 29, 2009
*
* API module for MediaWiki's FlaggedRevs extension
@@ -182,7 +182,7 @@
'
api.php?action=query&generator=unreviewedpages&urnamespace=0&gurlimit=4&prop=info',
);
}
-
+
public function getVersion() {
return __CLASS__ . ': $Id$';
}
Modified: trunk/extensions/LiquidThreads/api/ApiFeedLQTThreads.php
===================================================================
--- trunk/extensions/LiquidThreads/api/ApiFeedLQTThreads.php 2011-10-14
21:27:43 UTC (rev 99813)
+++ trunk/extensions/LiquidThreads/api/ApiFeedLQTThreads.php 2011-10-14
21:28:59 UTC (rev 99814)
@@ -1,5 +1,5 @@
<?php
-/*
+/**
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
Modified: trunk/extensions/OpenSearchXml/ApiOpenSearchXml.php
===================================================================
--- trunk/extensions/OpenSearchXml/ApiOpenSearchXml.php 2011-10-14 21:27:43 UTC
(rev 99813)
+++ trunk/extensions/OpenSearchXml/ApiOpenSearchXml.php 2011-10-14 21:28:59 UTC
(rev 99814)
@@ -1,6 +1,6 @@
<?php
-/*
+/**
* Created on Oct 13, 2006
* Adapted to XML output variant, plus extra text extraction 2008
* Text extraction adapted from ActiveAbstract extension.
Modified: trunk/extensions/OpenSearchXml/OpenSearchXml.php
===================================================================
--- trunk/extensions/OpenSearchXml/OpenSearchXml.php 2011-10-14 21:27:43 UTC
(rev 99813)
+++ trunk/extensions/OpenSearchXml/OpenSearchXml.php 2011-10-14 21:28:59 UTC
(rev 99814)
@@ -1,6 +1,6 @@
<?php
-/*
+/**
* Copyright (C) 2008 Brion Vibber <[email protected]>
* http://www.mediawiki.org/
*
Modified: trunk/extensions/PrefSwitch/PrefSwitch.classes.php
===================================================================
--- trunk/extensions/PrefSwitch/PrefSwitch.classes.php 2011-10-14 21:27:43 UTC
(rev 99813)
+++ trunk/extensions/PrefSwitch/PrefSwitch.classes.php 2011-10-14 21:28:59 UTC
(rev 99814)
@@ -1,5 +1,5 @@
<?php
-/*
+/**
* Classes for PrefSwitch extension
*
* @file
@@ -7,9 +7,9 @@
*/
class PrefSwitchSurvey {
-
+
/* Private Static Members */
-
+
// Correlation between names of field types and implementation classes
protected static $fieldTypes = array(
'select' => 'PrefSwitchSurveyFieldSelect',
@@ -20,9 +20,9 @@
'text' => 'PrefSwitchSurveyFieldText',
'smallinput' => 'PrefSwitchSurveyFieldSmallInput',
);
-
+
/* Static Methods */
-
+
/**
* Render the HTML for a survey.
* @param $name string Survey name
@@ -57,7 +57,7 @@
$html .= Xml::closeElement( 'dl' );
return $html;
}
-
+
/**
* Save a survey to the database
* @param $name string Survey name
@@ -85,10 +85,10 @@
}
}
}
-interface PrefSwitchSurveyField {
+interface PrefSwitchSurveyField {
/* Static Methods */
-
+
/**
* Render the HTML for a question
* @param $question string Question ID
@@ -98,7 +98,7 @@
* @return string HTML
*/
public static function render( $question, $config, $answer, $answerData
);
-
+
/**
* Get values to insert into the database for a question
* @param $question Question ID
@@ -142,7 +142,7 @@
$html .= Xml::closeElement( 'dd' );
return $html;
}
-
+
public static function save( $question, $request ) {
$answer = $request->getVal( "prefswitch-survey-{$question}", ''
);
switch ( $answer ) {
Modified: trunk/extensions/ProofreadPage/ApiQueryProofread.php
===================================================================
--- trunk/extensions/ProofreadPage/ApiQueryProofread.php 2011-10-14
21:27:43 UTC (rev 99813)
+++ trunk/extensions/ProofreadPage/ApiQueryProofread.php 2011-10-14
21:28:59 UTC (rev 99814)
@@ -1,5 +1,5 @@
<?php
-/*
+/**
* Created on August 8, 2011
*
* API module for MediaWiki's Proofread extension
@@ -72,7 +72,7 @@
if ( !isset( $qualityLevels[ $title ] ) ) {
continue;
}
-
+
$pageQuality = $qualityLevels[ $title ];
$val = array( 'quality' => $pageQuality,
'quality_text' => $qualityText[ $pageQuality ] );
$result->addValue( array( 'query', 'pages', $pageid ),
'proofread', $val );
Modified: trunk/extensions/WikiLove/WikiLove.local.php
===================================================================
--- trunk/extensions/WikiLove/WikiLove.local.php 2011-10-14 21:27:43 UTC
(rev 99813)
+++ trunk/extensions/WikiLove/WikiLove.local.php 2011-10-14 21:28:59 UTC
(rev 99814)
@@ -1,5 +1,5 @@
<?php
-/*
+/**
* Custom ResourceLoader module that loads a custom WikiLove.js per-wiki.
*/
class WikiLoveLocal extends ResourceLoaderWikiModule {
@@ -8,7 +8,7 @@
'MediaWiki:WikiLove.js' => array( 'type' =>
'script' ),
);
}
-
+
public function getMessages() {
global $wgWikiLoveOptionMessages;
return $wgWikiLoveOptionMessages;
Modified: trunk/extensions/Wikimania/Wikimania.php
===================================================================
--- trunk/extensions/Wikimania/Wikimania.php 2011-10-14 21:27:43 UTC (rev
99813)
+++ trunk/extensions/Wikimania/Wikimania.php 2011-10-14 21:28:59 UTC (rev
99814)
@@ -1,5 +1,5 @@
<?php
-/*
+/**
* Extension for managing the Wikimania conferences
*/
Modified: trunk/extensions/Wikimania/backend/Wikimania.php
===================================================================
--- trunk/extensions/Wikimania/backend/Wikimania.php 2011-10-14 21:27:43 UTC
(rev 99813)
+++ trunk/extensions/Wikimania/backend/Wikimania.php 2011-10-14 21:28:59 UTC
(rev 99814)
@@ -45,7 +45,6 @@
*/
private $country;
-
/**
* Do a bit of delayed setup, based on this year's config
* @param $year int Year to host Wikimania for
Modified: trunk/extensions/Wikimania/backend/WikimaniaRegistration.php
===================================================================
--- trunk/extensions/Wikimania/backend/WikimaniaRegistration.php
2011-10-14 21:27:43 UTC (rev 99813)
+++ trunk/extensions/Wikimania/backend/WikimaniaRegistration.php
2011-10-14 21:28:59 UTC (rev 99814)
@@ -3,15 +3,29 @@
* Class referring to a specific registration
*/
class WikimaniaRegistration extends HTMLForm {
+
+ /**
+ * @param $wm Wikimania
+ * @param $context ContextSource
+ */
public function __construct( Wikimania $wm, $context = null ) {
parent::__construct( $this->getFields( $wm, $context->getUser()
), $context, 'wikimania' );
}
+ /**
+ * @param $u user
+ * @return string
+ */
public static function generateRegistrationID( User $u ) {
$str = $u->getName() . ":" . microtime() . ":" . wfGetIP();
return substr( sha1( $str ), 0, 5 );
}
+ /**
+ * @param $wm Wikimania
+ * @param $u User
+ * @return array
+ */
private function getFields( Wikimania $wm, User $u ) {
static $fields;
if( !$fields ) {
@@ -76,6 +90,10 @@
return $fields;
}
+ /**
+ * @static
+ * @return array
+ */
private static function getGenderPossibilities() {
return array(
wfMsg( 'gender-male') => 'male',
Modified: trunk/extensions/Wikimania/specials/SpecialCheckWikimaniaStatus.php
===================================================================
--- trunk/extensions/Wikimania/specials/SpecialCheckWikimaniaStatus.php
2011-10-14 21:27:43 UTC (rev 99813)
+++ trunk/extensions/Wikimania/specials/SpecialCheckWikimaniaStatus.php
2011-10-14 21:28:59 UTC (rev 99814)
@@ -1,5 +1,5 @@
<?php
-/*
+/**
* Check your registration status
*/
class SpecialCheckWikimaniaStatus extends SpecialPage {
Modified: trunk/extensions/Wikimania/specials/SpecialRegisterForWikimania.php
===================================================================
--- trunk/extensions/Wikimania/specials/SpecialRegisterForWikimania.php
2011-10-14 21:27:43 UTC (rev 99813)
+++ trunk/extensions/Wikimania/specials/SpecialRegisterForWikimania.php
2011-10-14 21:28:59 UTC (rev 99814)
@@ -1,5 +1,5 @@
<?php
-/*
+/**
* Register for Wikimania
*/
class SpecialRegisterForWikimania extends SpecialPage {
Modified: trunk/extensions/WikimediaMaintenance/cleanupTitles64966.php
===================================================================
--- trunk/extensions/WikimediaMaintenance/cleanupTitles64966.php
2011-10-14 21:27:43 UTC (rev 99813)
+++ trunk/extensions/WikimediaMaintenance/cleanupTitles64966.php
2011-10-14 21:28:59 UTC (rev 99814)
@@ -1,5 +1,5 @@
<?php
-/*
+/**
* Script to clean up broken, unparseable titles.
*
* Usage: php cleanupTitles.php [--fix]
@@ -42,7 +42,7 @@
$verified = $wgContLang->normalize( $display );
$title = Title::newFromText( $verified );
- if( !is_null( $title )
+ if( !is_null( $title )
&& $title->canExist()
&& $title->getNamespace() == $row->page_namespace
&& $title->getDBkey() === $row->page_title )
@@ -114,7 +114,7 @@
}
# Old cleanupTitles could move articles there. See bug
23147.
- $ns = $row->page_namespace;
+ $ns = $row->page_namespace;
if ( $ns < 0) $ns = 0;
$clean = 'Broken/' . $prior;
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs