w/s diff. mostly eol w/s and using only tabs of width 4 to indent.
authorMark A. Hershberger <mah@users.mediawiki.org>
Fri, 18 Mar 2011 20:37:11 +0000 (20:37 +0000)
committerMark A. Hershberger <mah@users.mediawiki.org>
Fri, 18 Mar 2011 20:37:11 +0000 (20:37 +0000)
58 files changed:
includes/specials/SpecialAllmessages.php
includes/specials/SpecialAllpages.php
includes/specials/SpecialBlock.php
includes/specials/SpecialBlockList.php
includes/specials/SpecialBooksources.php
includes/specials/SpecialBrokenRedirects.php
includes/specials/SpecialCategories.php
includes/specials/SpecialConfirmemail.php
includes/specials/SpecialContributions.php
includes/specials/SpecialDeadendpages.php
includes/specials/SpecialDeletedContributions.php
includes/specials/SpecialDisambiguations.php
includes/specials/SpecialDoubleRedirects.php
includes/specials/SpecialEmailuser.php
includes/specials/SpecialExport.php
includes/specials/SpecialFileDuplicateSearch.php
includes/specials/SpecialFilepath.php
includes/specials/SpecialImport.php
includes/specials/SpecialLinkSearch.php
includes/specials/SpecialListfiles.php
includes/specials/SpecialListgrouprights.php
includes/specials/SpecialListredirects.php
includes/specials/SpecialLonelypages.php
includes/specials/SpecialMIMEsearch.php
includes/specials/SpecialMergeHistory.php
includes/specials/SpecialMostcategories.php
includes/specials/SpecialMostlinked.php
includes/specials/SpecialMostlinkedcategories.php
includes/specials/SpecialMostlinkedtemplates.php
includes/specials/SpecialMostrevisions.php
includes/specials/SpecialMovepage.php
includes/specials/SpecialNewimages.php
includes/specials/SpecialPreferences.php
includes/specials/SpecialPrefixindex.php
includes/specials/SpecialProtectedpages.php
includes/specials/SpecialRandompage.php
includes/specials/SpecialRecentchanges.php
includes/specials/SpecialRecentchangeslinked.php
includes/specials/SpecialResetpass.php
includes/specials/SpecialSpecialpages.php
includes/specials/SpecialStatistics.php
includes/specials/SpecialTags.php
includes/specials/SpecialUnblock.php
includes/specials/SpecialUncategorizedimages.php
includes/specials/SpecialUncategorizedpages.php
includes/specials/SpecialUndelete.php
includes/specials/SpecialUnusedimages.php
includes/specials/SpecialUnusedtemplates.php
includes/specials/SpecialUnwatchedpages.php
includes/specials/SpecialUpload.php
includes/specials/SpecialUploadStash.php
includes/specials/SpecialUserlogin.php
includes/specials/SpecialUserrights.php
includes/specials/SpecialVersion.php
includes/specials/SpecialWantedfiles.php
includes/specials/SpecialWatchlist.php
includes/specials/SpecialWhatlinkshere.php
includes/specials/SpecialWithoutinterwiki.php

index cba580b..4270d83 100644 (file)
@@ -167,7 +167,7 @@ class AllmessagesTablePager extends TablePager {
        protected $mSkin;
 
        /**
-        * @var Language 
+        * @var Language
         */
        public $lang;
 
index 1fe2a96..64c1db5 100644 (file)
@@ -20,7 +20,7 @@
  * @file
  * @ingroup SpecialPage
  */
+
 /**
  * Implements Special:Allpages
  *
@@ -71,7 +71,7 @@ class SpecialAllpages extends IncludableSpecialPage {
 
                $namespaces = $wgContLang->getNamespaces();
 
-               $wgOut->setPagetitle( 
+               $wgOut->setPagetitle(
                        ( $namespace > 0 && in_array( $namespace, array_keys( $namespaces) ) ) ?
                        wfMsg( 'allinnamespace', str_replace( '_', ' ', $namespaces[$namespace] ) ) :
                        wfMsg( 'allarticles' )
@@ -97,7 +97,7 @@ class SpecialAllpages extends IncludableSpecialPage {
        function namespaceForm( $namespace = NS_MAIN, $from = '', $to = '' ) {
                global $wgScript;
                $t = $this->getTitle();
-       
+
                $out  = Xml::openElement( 'div', array( 'class' => 'namespaceoptions' ) );
                $out .= Xml::openElement( 'form', array( 'method' => 'get', 'action' => $wgScript ) );
                $out .= Html::hidden( 'title', $t->getPrefixedText() );
@@ -374,7 +374,7 @@ class SpecialAllpages extends IncludableSpecialPage {
                                        'page_title',
                                        array( 'page_namespace' => $namespace, 'page_title < '.$dbr->addQuotes($from) ),
                                        __METHOD__,
-                                       array( 'ORDER BY' => 'page_title DESC', 
+                                       array( 'ORDER BY' => 'page_title DESC',
                                                'LIMIT' => $this->maxPerPage, 'OFFSET' => ($this->maxPerPage - 1 )
                                        )
                                );
index 17e59e0..71dd1af 100644 (file)
@@ -70,7 +70,7 @@ class SpecialBlock extends SpecialPage {
                        # User logs, UserRights, etc.
                        $wgUser->getSkin()->setRelevantUser( $this->target );
                }
-       
+
                # bug 15810: blocked admins should have limited access here
                $status = self::checkUnblockSelf( $this->target );
                if ( $status !== true ) {
@@ -388,7 +388,7 @@ class SpecialBlock extends SpecialPage {
                                        if( $request instanceof WebRequest ){
                                                $target = $request->getText( 'wpTarget', null );
                                        }
-                               break;
+                                       break;
                                case 1:
                                        $target = $par;
                                        break;
@@ -396,13 +396,13 @@ class SpecialBlock extends SpecialPage {
                                        if( $request instanceof WebRequest ){
                                                $target = $request->getText( 'ip', null );
                                        }
-                               break;
+                                       break;
                                case 3:
                                        # B/C @since 1.18
                                        if( $request instanceof WebRequest ){
                                                $target = $request->getText( 'wpBlockAddress', null );
                                        }
-                               break;
+                                       break;
                                case 4:
                                        break 2;
                        }
index 1568269..b3aecd3 100644 (file)
@@ -85,7 +85,7 @@ class SpecialBlockList extends SpecialPage {
                $form->setWrapperLegend( wfMsg( 'ipblocklist-legend' ) );
                $form->setSubmitText( wfMsg( 'ipblocklist-submit' ) );
                $form->prepareForm();
-               
+
                $form->displayForm( '' );
                $this->showList();
        }
@@ -142,7 +142,7 @@ class SpecialBlockList extends SpecialPage {
                                        $chunk = self::getIpFragment( $start );
                                        $dbr = wfGetDB( DB_SLAVE );
                                        $like = $dbr->buildLike( $chunk, $dbr->anyString() );
-                                               
+
                                        # Fairly hard to make a malicious SQL statement out of hex characters,
                                        # but stranger things have happened...
                                        $safeStart = $dbr->addQuotes( IP::toHex( $start ) );
index 67fb540..13a651d 100644 (file)
@@ -77,7 +77,7 @@ class SpecialBookSources extends SpecialPage {
                                        $sum += 3 * $isbn{$i};
                                }
                        }
-               
+
                        $check = (10 - ($sum % 10)) % 10;
                        if ($check == $isbn{12}) {
                                return true;
@@ -86,7 +86,7 @@ class SpecialBookSources extends SpecialPage {
                        for($i = 0; $i < 9; $i++) {
                                $sum += $isbn{$i} * ($i + 1);
                        }
-               
+
                        $check = $sum % 11;
                        if($check == 10) {
                                $check = "X";
index ddd6d48..879a758 100644 (file)
@@ -32,7 +32,7 @@ class BrokenRedirectsPage extends PageQueryPage {
        function __construct( $name = 'BrokenRedirects' ) {
                parent::__construct( $name );
        }
-       
+
        function isExpensive() { return true; }
        function isSyndicated() { return false; }
        function sortDescending() { return false; }
index c2dd40c..bb5a5e8 100644 (file)
@@ -69,12 +69,12 @@ class CategoryPager extends AlphabeticPager {
                        $this->mOffset = $from;
                }
        }
-       
+
        function getQueryInfo() {
                return array(
                        'tables' => array( 'category' ),
                        'fields' => array( 'cat_title','cat_pages' ),
-                       'conds' => array( 'cat_pages > 0' ), 
+                       'conds' => array( 'cat_pages > 0' ),
                        'options' => array( 'USE INDEX' => 'cat_title' ),
                );
        }
@@ -121,11 +121,11 @@ class CategoryPager extends AlphabeticPager {
                                $wgLang->formatNum( $result->cat_pages ) );
                return Xml::tags('li', null, "$titleText ($count)" ) . "\n";
        }
-       
+
        public function getStartForm( $from ) {
                global $wgScript;
                $t = SpecialPage::getTitleFor( 'Categories' );
-       
+
                return
                        Xml::tags( 'form', array( 'method' => 'get', 'action' => $wgScript ),
                                Html::hidden( 'title', $t->getPrefixedText() ) .
index bc21d92..3e45d30 100644 (file)
@@ -46,12 +46,12 @@ class EmailConfirmation extends UnlistedSpecialPage {
        function execute( $code ) {
                global $wgUser, $wgOut;
                $this->setHeaders();
-               
+
                if ( wfReadOnly() ) {
                        $wgOut->readOnlyPage();
                        return;
                }
-               
+
                if( empty( $code ) ) {
                        if( $wgUser->isLoggedIn() ) {
                                if( User::isValidEmailAddr( $wgUser->getEmail() ) ) {
@@ -150,11 +150,11 @@ class EmailInvalidation extends UnlistedSpecialPage {
                $this->setHeaders();
 
                if ( wfReadOnly() ) {
-                       global $wgOut;         
+                       global $wgOut;
                        $wgOut->readOnlyPage();
                        return;
                }
-               
+
                $this->attemptInvalidate( $code );
        }
 
index 3119fe7..4823af6 100644 (file)
@@ -284,7 +284,7 @@ class SpecialContributions extends SpecialPage {
                        array(),
                        array( 'user' => $username )
                );
-               
+
                # Other logs link
                $tools[] = $sk->linkKnown(
                        SpecialPage::getTitleFor( 'Log' ),
@@ -390,7 +390,7 @@ class SpecialContributions extends SpecialPage {
                        Html::rawElement( 'p', array( 'style' => 'white-space: nowrap' ),
                                Xml::dateMenu( $this->opts['year'], $this->opts['month'] ) . ' ' .
                                Xml::submitButton( wfMsg( 'sp-contributions-submit' ) )
-                       ) . ' ';        
+                       ) . ' ';
                $explain = wfMsgExt( 'sp-contributions-explain', 'parseinline' );
                if( !wfEmptyMsg( 'sp-contributions-explain' ) ) {
                        $f .= "<p id='mw-sp-contributions-explain'>{$explain}</p>";
index bb9625a..f8ef4d4 100644 (file)
@@ -46,7 +46,7 @@ class DeadendPagesPage extends PageQueryPage {
        }
 
        function isSyndicated() {
-               return false; 
+               return false;
        }
 
        /**
@@ -72,7 +72,7 @@ class DeadendPagesPage extends PageQueryPage {
                        ) ) )
                );
        }
-       
+
        function getOrderFields() {
                // For some crazy reason ordering by a constant
                // causes a filesort
index e9e6f66..cb1ee94 100644 (file)
@@ -211,7 +211,7 @@ class DeletedContribsPager extends IndexPager {
                } else {
                        $mflag = '';
                }
-               
+
                // Revision delete link
                $canHide = $wgUser->isAllowed( 'deleterevision' );
                if( $canHide || ($rev->getVisibility() && $wgUser->isAllowed('deletedhistory')) ) {
@@ -234,9 +234,9 @@ class DeletedContribsPager extends IndexPager {
                        array( 'class' => 'mw-deletedcontribs-tools' ),
                        wfMsg( 'parentheses', $wgLang->pipeList( array( $last, $dellog, $reviewlink ) ) )
                );
-               
+
                $ret = "{$del}{$link} {$tools} . . {$mflag} {$pagelink} {$comment}";
-               
+
                # Denote if username is redacted for this edit
                if( $rev->isDeleted( Revision::DELETED_USER ) ) {
                        $ret .= " <strong>" . wfMsgHtml('rev-deleted-user-contribs') . "</strong>";
@@ -381,7 +381,7 @@ class DeletedContributionsPage extends SpecialPage {
                                                        array(),
                                                        array(
                                                                'action' => 'unblock',
-                                                               'ip' => $nt->getDBkey() 
+                                                               'ip' => $nt->getDBkey()
                                                        )
                                                );
                                        }
index 314a7fb..4ca5eac 100644 (file)
@@ -77,7 +77,7 @@ class DisambiguationsPage extends PageQueryPage {
                        $set = 'FALSE';
                        wfDebug("Mediawiki:disambiguationspage message does not link to any templates!\n");
                }
-               
+
                // FIXME: What are pagelinks and p2 doing here?
                return array (
                        'tables' => array( 'templatelinks', 'p1' => 'page', 'pagelinks', 'p2' => 'page' ),
@@ -96,11 +96,11 @@ class DisambiguationsPage extends PageQueryPage {
        function getOrderFields() {
                return array( 'tl_namespace', 'tl_title', 'value' );
        }
-       
+
        function sortDescending() {
                return false;
        }
-       
+
        /**
         * Fetch  links and cache their existence
         */
index d25de5d..4242a0a 100644 (file)
@@ -32,7 +32,7 @@ class DoubleRedirectsPage extends PageQueryPage {
        function __construct( $name = 'DoubleRedirects' ) {
                parent::__construct( $name );
        }
-       
+
        function isExpensive() { return true; }
        function isSyndicated() { return false; }
        function sortDescending() { return false; }
index 2d058a9..098d936 100644 (file)
  */
 class SpecialEmailUser extends UnlistedSpecialPage {
        protected $mTarget;
-       
+
        public function __construct(){
                parent::__construct( 'Emailuser' );
        }
-       
+
        protected function getFormFields(){
                global $wgUser;
                return array(
                        'From' => array(
                                'type' => 'info',
                                'raw' => 1,
-                               'default' => $wgUser->getSkin()->link( 
-                                       $wgUser->getUserPage(), 
-                                       htmlspecialchars( $wgUser->getName() ) 
+                               'default' => $wgUser->getSkin()->link(
+                                       $wgUser->getUserPage(),
+                                       htmlspecialchars( $wgUser->getName() )
                                ),
                                'label-message' => 'emailfrom',
                                'id' => 'mw-emailuser-sender',
@@ -49,8 +49,8 @@ class SpecialEmailUser extends UnlistedSpecialPage {
                        'To' => array(
                                'type' => 'info',
                                'raw' => 1,
-                               'default' => $wgUser->getSkin()->link( 
-                                       $this->mTargetObj->getUserPage(), 
+                               'default' => $wgUser->getSkin()->link(
+                                       $this->mTargetObj->getUserPage(),
                                        htmlspecialchars( $this->mTargetObj->getName() )
                                ),
                                'label-message' => 'emailto',
@@ -82,7 +82,7 @@ class SpecialEmailUser extends UnlistedSpecialPage {
                        ),
                );
        }
-       
+
        public function execute( $par ) {
                global $wgRequest, $wgOut, $wgUser;
 
@@ -93,7 +93,7 @@ class SpecialEmailUser extends UnlistedSpecialPage {
                $this->mTarget = is_null( $par )
                        ? $wgRequest->getVal( 'wpTarget', $wgRequest->getVal( 'target', '' ) )
                        : $par;
-                       
+
                $ret = self::getTarget( $this->mTarget );
                if( $ret instanceof User ){
                        $this->mTargetObj = $ret;
@@ -101,7 +101,7 @@ class SpecialEmailUser extends UnlistedSpecialPage {
                        $wgOut->showErrorPage( "{$ret}title", "{$ret}text" );
                        return false;
                }
-       
+
                $error = self::getPermissionsError( $wgUser, $wgRequest->getVal( 'wpEditToken' ) );
                switch ( $error ) {
                        case null:
@@ -126,7 +126,7 @@ class SpecialEmailUser extends UnlistedSpecialPage {
                                $wgOut->showErrorPage( $title, $msg, $params );
                                return;
                }
-               
+
                $form = new HTMLForm( $this->getFormFields() );
                $form->addPreText( wfMsgExt( 'emailpagetext', 'parseinline' ) );
                $form->setSubmitText( wfMsg( 'emailsend' ) );
@@ -134,14 +134,14 @@ class SpecialEmailUser extends UnlistedSpecialPage {
                $form->setSubmitCallback( array( __CLASS__, 'submit' ) );
                $form->setWrapperLegend( wfMsgExt( 'email-legend', 'parsemag' ) );
                $form->loadData();
-               
+
                if( !wfRunHooks( 'EmailUserForm', array( &$form ) ) ){
                        return false;
                }
-               
+
                $wgOut->setPagetitle( wfMsg( 'emailpage' ) );
                $result = $form->show();
-               
+
                if( $result === true || ( $result instanceof Status && $result->isGood() ) ){
                        $wgOut->setPagetitle( wfMsg( 'emailsent' ) );
                        $wgOut->addWikiMsg( 'emailsenttext' );
@@ -160,7 +160,7 @@ class SpecialEmailUser extends UnlistedSpecialPage {
                        wfDebug( "Target is empty.\n" );
                        return 'notarget';
                }
-               
+
                $nu = User::newFromName( $target );
                if( !$nu instanceof User || !$nu->getId() ) {
                        wfDebug( "Target is invalid user.\n" );
@@ -188,11 +188,11 @@ class SpecialEmailUser extends UnlistedSpecialPage {
                if( !$wgEnableEmail || !$wgEnableUserEmail ){
                        return 'usermaildisabled';
                }
-               
+
                if( !$user->isAllowed( 'sendemail' ) ) {
                        return 'badaccess';
                }
-               
+
                if( !$user->isEmailConfirmed() ){
                        return 'mailnologin';
                }
@@ -219,7 +219,7 @@ class SpecialEmailUser extends UnlistedSpecialPage {
 
        /**
         * Really send a mail. Permissions should have been checked using
-        * getPermissionsError(). It is probably also a good 
+        * getPermissionsError(). It is probably also a good
         * idea to check the edit token and ping limiter in advance.
         *
         * @return Mixed: Status object, or potentially a String on error
@@ -239,17 +239,17 @@ class SpecialEmailUser extends UnlistedSpecialPage {
 
                // Add a standard footer and trim up trailing newlines
                $text = rtrim( $text ) . "\n\n-- \n";
-               $text .= wfMsgExt( 
+               $text .= wfMsgExt(
                        'emailuserfooter',
-                       array( 'content', 'parsemag' ), 
-                       array( $from->name, $to->name ) 
+                       array( 'content', 'parsemag' ),
+                       array( $from->name, $to->name )
                );
 
                $error = '';
                if( !wfRunHooks( 'EmailUser', array( &$to, &$from, &$subject, &$text, &$error ) ) ) {
                        return $error;
                }
-               
+
                if( $wgUserEmailUseReplyTo ) {
                        // Put the generic wiki autogenerated address in the From:
                        // header and reserve the user for Reply-To.
@@ -284,12 +284,12 @@ class SpecialEmailUser extends UnlistedSpecialPage {
                        return $status;
                } else {
                        // if the user requested a copy of this mail, do this now,
-                       // unless they are emailing themselves, in which case one 
+                       // unless they are emailing themselves, in which case one
                        // copy of the message is sufficient.
                        if ( $data['CCMe'] && $to != $from ) {
                                $cc_subject = wfMsg(
-                                       'emailccsubject', 
-                                       $target->getName(), 
+                                       'emailccsubject',
+                                       $target->getName(),
                                        $subject
                                );
                                wfRunHooks( 'EmailUserCC', array( &$from, &$from, &$cc_subject, &$text ) );
index c64e671..4822cd4 100644 (file)
@@ -92,13 +92,13 @@ class SpecialExport extends SpecialPage {
                        $page = $wgRequest->getText( 'pages' );
                        $this->curonly = $wgRequest->getCheck( 'curonly' );
                        $rawOffset = $wgRequest->getVal( 'offset' );
-                       
+
                        if( $rawOffset ) {
                                $offset = wfTimestamp( TS_MW, $rawOffset );
                        } else {
                                $offset = null;
                        }
-                       
+
                        $limit = $wgRequest->getInt( 'limit' );
                        $dir = $wgRequest->getVal( 'dir' );
                        $history = array(
@@ -107,7 +107,7 @@ class SpecialExport extends SpecialPage {
                                'limit' => $wgExportMaxHistory,
                        );
                        $historyCheck = $wgRequest->getCheck( 'history' );
-                       
+
                        if ( $this->curonly ) {
                                $history = WikiExporter::CURRENT;
                        } elseif ( !$historyCheck ) {
@@ -129,7 +129,7 @@ class SpecialExport extends SpecialPage {
                        // Default to current-only for GET requests.
                        $page = $wgRequest->getText( 'pages', $par );
                        $historyCheck = $wgRequest->getCheck( 'history' );
-                       
+
                        if( $historyCheck ) {
                                $history = WikiExporter::FULL;
                        } else {
@@ -153,20 +153,20 @@ class SpecialExport extends SpecialPage {
 
                if ( $this->doExport ) {
                        $wgOut->disable();
-                       
+
                        // Cancel output buffering and gzipping if set
                        // This should provide safer streaming for pages with history
                        wfResetOutputBuffers();
                        $wgRequest->response()->header( "Content-type: application/xml; charset=utf-8" );
-                       
+
                        if( $wgRequest->getCheck( 'wpDownload' ) ) {
                                // Provide a sane filename suggestion
                                $filename = urlencode( $wgSitename . '-' . wfTimestampNow() . '.xml' );
                                $wgRequest->response()->header( "Content-disposition: attachment;filename={$filename}" );
                        }
-                       
+
                        $this->doExport( $page, $history, $list_authors );
-                       
+
                        return;
                }
 
@@ -195,14 +195,14 @@ class SpecialExport extends SpecialPage {
                } else {
                        $wgOut->addHTML( wfMsgExt( 'exportnohistory', 'parse' ) );
                }
-               
+
                $form .= Xml::checkLabel(
-                       wfMsg( 'export-templates' ), 
-                       'templates', 
-                       'wpExportTemplates', 
+                       wfMsg( 'export-templates' ),
+                       'templates',
+                       'wpExportTemplates',
                        $wgRequest->wasPosted() ? $wgRequest->getCheck( 'templates' ) : false
                ) . '<br />';
-               
+
                if( $wgExportMaxLinkDepth || $this->userCanOverrideExportDepth() ) {
                        $form .= Xml::inputLabel( wfMsg( 'export-pagelinks' ), 'pagelink-depth', 'pagelink-depth', 20, 0 ) . '<br />';
                }
@@ -217,7 +217,7 @@ class SpecialExport extends SpecialPage {
 
                $form .= Xml::submitButton( wfMsg( 'export-submit' ), $wgUser->getSkin()->tooltipAndAccessKeyAttribs( 'export' ) );
                $form .= Xml::closeElement( 'form' );
-               
+
                $wgOut->addHTML( $form );
        }
 
@@ -272,7 +272,7 @@ class SpecialExport extends SpecialPage {
                foreach( $pages as $k => $v ) {
                        $pages[$k] = str_replace( " ", "_", $v );
                }
-               
+
                $pages = array_unique( $pages );
 
                /* Ok, let's get to it... */
@@ -291,11 +291,11 @@ class SpecialExport extends SpecialPage {
                        set_time_limit(0);
                        wfRestoreWarnings();
                }
-               
+
                $exporter = new WikiExporter( $db, $history, $buffer );
                $exporter->list_authors = $list_authors;
                $exporter->openStream();
-               
+
                foreach( $pages as $page ) {
                        /*
                         if( $wgExportMaxHistory && !$this->curonly ) {
@@ -322,7 +322,7 @@ class SpecialExport extends SpecialPage {
                }
 
                $exporter->closeStream();
-               
+
                if( $lb ) {
                        $lb->closeAll();
                }
@@ -343,7 +343,7 @@ class SpecialExport extends SpecialPage {
                );
 
                $pages = array();
-               
+
                foreach ( $res as $row ) {
                        $n = $row->page_title;
                        if ($row->page_namespace) {
@@ -369,10 +369,10 @@ class SpecialExport extends SpecialPage {
                );
 
                $pages = array();
-               
+
                foreach ( $res as $row ) {
                        $n = $row->page_title;
-                       
+
                        if ( $row->page_namespace ) {
                                $ns = $wgContLang->getNsText( $row->page_namespace );
                                $n = $ns . ':' . $n;
@@ -402,17 +402,17 @@ class SpecialExport extends SpecialPage {
         */
        private function validateLinkDepth( $depth ) {
                global $wgExportMaxLinkDepth;
-               
+
                if( $depth < 0 ) {
                        return 0;
                }
-               
+
                if ( !$this->userCanOverrideExportDepth() ) {
                        if( $depth > $wgExportMaxLinkDepth ) {
                                return $wgExportMaxLinkDepth;
                        }
                }
-               
+
                /*
                 * There's a HARD CODED limit of 5 levels of recursion here to prevent a
                 * crazy-big export from being done by someone setting the depth
@@ -426,21 +426,21 @@ class SpecialExport extends SpecialPage {
                for( ; $depth > 0; --$depth ) {
                        $pageSet = $this->getLinks(
                                $inputPages, $pageSet, 'pagelinks',
-                               array( 'pl_namespace AS namespace', 'pl_title AS title' ),
+                               array( 'pl_namespace AS namespace', 'pl_title AS title' ),
                                array( 'page_id=pl_from' )
                        );
                        $inputPages = array_keys( $pageSet );
                }
-               
+
                return $pageSet;
        }
 
        /**
         * Expand a list of pages to include images used in those pages.
-        * 
+        *
         * @param $inputPages array, list of titles to look up
         * @param $pageSet array, associative array indexed by titles for output
-        * 
+        *
         * @return array associative array index by titles
         */
        private function getImages( $inputPages, $pageSet ) {
@@ -458,10 +458,10 @@ class SpecialExport extends SpecialPage {
         */
        private function getLinks( $inputPages, $pageSet, $table, $fields, $join ) {
                $dbr = wfGetDB( DB_SLAVE );
-               
+
                foreach( $inputPages as $page ) {
                        $title = Title::newFromText( $page );
-                       
+
                        if( $title ) {
                                $pageSet[$title->getPrefixedText()] = true;
                                /// @todo Fixme: May or may not be more efficient to batch these
@@ -478,15 +478,15 @@ class SpecialExport extends SpecialPage {
                                        ),
                                        __METHOD__
                                );
-                               
+
                                foreach( $result as $row ) {
                                        $template = Title::makeTitle( $row->namespace, $row->title );
                                        $pageSet[$template->getPrefixedText()] = true;
                                }
                        }
                }
-               
+
                return $pageSet;
        }
-       
+
 }
index 2e4b608..af93070 100644 (file)
@@ -89,13 +89,13 @@ class FileDuplicateSearchPage extends QueryPage {
                        'conds' => array( 'img_sha1' => $this->hash )
                );
        }
-       
+
        function execute( $par ) {
                global $wgRequest, $wgOut, $wgLang, $wgContLang, $wgScript;
-               
+
                $this->setHeaders();
                $this->outputHeader();
-               
+
                $this->filename =  isset( $par ) ?  $par : $wgRequest->getText( 'filename' );
                $this->file = null;
                $this->hash = '';
index 3e27b43..744940f 100644 (file)
@@ -46,14 +46,14 @@ class SpecialFilepath extends SpecialPage {
                        $this->showForm( $title );
                } else {
                        $file = wfFindFile( $title );
-                       
+
                        if ( $file && $file->exists() ) {
                                // Default behaviour: Use the direct link to the file.
                                $url = $file->getURL();
                                $width = $wgRequest->getInt( 'width', -1 );
                                $height = $wgRequest->getInt( 'height', -1 );
 
-                               // If a width is requested...                   
+                               // If a width is requested...
                                if ( $width != -1 ) {
                                        $mto = $file->transform( array( 'width' => $width, 'height' => $height ) );
                                        // ... and we can
index b1292d2..336576c 100644 (file)
  * @ingroup SpecialPage
  */
 class SpecialImport extends SpecialPage {
-       
+
        private $interwiki = false;
        private $namespace;
        private $frompage = '';
        private $logcomment= false;
        private $history = true;
        private $includeTemplates = false;
-       
+
        /**
         * Constructor
         */
@@ -46,28 +46,28 @@ class SpecialImport extends SpecialPage {
                global $wgImportTargetNamespace;
                $this->namespace = $wgImportTargetNamespace;
        }
-       
+
        /**
         * Execute
         */
        function execute( $par ) {
                global $wgRequest;
-               
+
                $this->setHeaders();
                $this->outputHeader();
-               
+
                if ( wfReadOnly() ) {
                        global $wgOut;
                        $wgOut->readOnlyPage();
                        return;
                }
-               
+
                if ( $wgRequest->wasPosted() && $wgRequest->getVal( 'action' ) == 'submit' ) {
                        $this->doImport();
                }
                $this->showForm();
        }
-       
+
        /**
         * Do the actual import
         */
@@ -290,8 +290,8 @@ class ImportReporter {
        private $mLogItemCount = 0;
 
        function __construct( $importer, $upload, $interwiki , $reason=false ) {
-               $this->mOriginalPageOutCallback = 
-                       $importer->setPageOutCallback( array( $this, 'reportPage' ) );
+               $this->mOriginalPageOutCallback =
+                               $importer->setPageOutCallback( array( $this, 'reportPage' ) );
                $this->mOriginalLogCallback =
                        $importer->setLogItemCallback( array( $this, 'reportLogItem' ) );
                $this->mPageCount = 0;
@@ -304,7 +304,7 @@ class ImportReporter {
                global $wgOut;
                $wgOut->addHTML( "<ul>\n" );
        }
-       
+
        function reportLogItem( /* ... */ ) {
                $this->mLogItemCount++;
                if ( is_callable( $this->mOriginalLogCallback ) ) {
@@ -314,7 +314,7 @@ class ImportReporter {
 
        function reportPage( $title, $origTitle, $revisionCount, $successCount, $pageInfo ) {
                global $wgOut, $wgUser, $wgLang, $wgContLang;
-               
+
                $args = func_get_args();
                call_user_func_array( $this->mOriginalPageOutCallback, $args );
 
@@ -367,7 +367,7 @@ class ImportReporter {
 
        function close() {
                global $wgOut, $wgLang;
-               
+
                if ( $this->mLogItemCount > 0 ) {
                        $msg = wfMsgExt( 'imported-log-entries', 'parseinline',
                                                $wgLang->formatNum( $this->mLogItemCount ) );
index b831b96..623504d 100644 (file)
@@ -21,7 +21,7 @@
  * @ingroup SpecialPage
  * @author Brion Vibber
  */
+
 
 /**
  * Special:LinkSearch to search the external-links table.
@@ -37,16 +37,16 @@ class LinkSearchPage extends QueryPage {
        function __construct( $name = 'LinkSearch' ) {
                parent::__construct( $name );
        }
-       
+
        function isCacheable() {
                return false;
        }
-       
+
        function execute( $par ) {
                global $wgOut, $wgRequest, $wgUrlProtocols, $wgMiserMode, $wgLang;
                $this->setHeaders();
                $wgOut->allowClickjacking();
-               
+
                $target = $wgRequest->getVal( 'target', $par );
                $namespace = $wgRequest->getIntorNull( 'namespace', null );
 
@@ -95,7 +95,7 @@ class LinkSearchPage extends QueryPage {
                $wgOut->addHTML( $s );
 
                if( $target != '' ) {
-                       $this->setParams( array( 
+                       $this->setParams( array(
                                'query' => $target2,
                                'namespace' => $namespace,
                                'protocol' => $protocol ) );
@@ -149,7 +149,7 @@ class LinkSearchPage extends QueryPage {
                if( $this->mMungedQuery === false )
                        // Invalid query; return no results
                        return array( 'tables' => 'page', 'fields' => 'page_id', 'conds' => '0=1' );
-               
+
                $stripped = LinkFilter::keepOneWildcard( $this->mMungedQuery );
                $like = $dbr->buildLike( $stripped );
                $retval = array (
index a6bc714..98725e8 100644 (file)
@@ -20,7 +20,7 @@
  * @file
  * @ingroup SpecialPage
  */
+
 function wfSpecialListfiles( $par = null ) {
        global $wgOut;
 
@@ -39,7 +39,7 @@ class ImageListPager extends TablePager {
        var $mFieldNames = null;
        var $mQueryConds = array();
        var $mUserName = null;
-       
+
        function __construct( $par = null ) {
                global $wgRequest, $wgMiserMode;
                if ( $wgRequest->getText( 'sort', 'img_date' ) == 'img_date' ) {
@@ -47,7 +47,7 @@ class ImageListPager extends TablePager {
                } else {
                        $this->mDefaultDirection = false;
                }
-               
+
                $userName = $wgRequest->getText( 'user', $par );
                if ( $userName ) {
                        $nt = Title::newFromText( $userName, NS_USER );
@@ -55,14 +55,14 @@ class ImageListPager extends TablePager {
                                $this->mUserName = $nt->getText();
                                $this->mQueryConds['img_user_text'] = $this->mUserName;
                        }
-               } 
-               
+               }
+
                $search = $wgRequest->getText( 'ilsearch' );
                if ( $search != '' && !$wgMiserMode ) {
                        $nt = Title::newFromURL( $search );
                        if ( $nt ) {
                                $dbr = wfGetDB( DB_SLAVE );
-                               $this->mQueryConds[] = 'LOWER(img_name)' . $dbr->buildLike( $dbr->anyString(), 
+                               $this->mQueryConds[] = 'LOWER(img_name)' . $dbr->buildLike( $dbr->anyString(),
                                        strtolower( $nt->getDBkey() ), $dbr->anyString() );
                        }
                }
@@ -232,7 +232,7 @@ class ImageListPager extends TablePager {
        function getSortHeaderClass() {
                return 'listfiles_sort ' . parent::getSortHeaderClass();
        }
-       
+
        function getPagingQueries() {
                $queries = parent::getPagingQueries();
                if ( !is_null( $this->mUserName ) ) {
index 63dd2b8..29eef62 100644 (file)
@@ -61,7 +61,7 @@ class SpecialListGroupRights extends SpecialPage {
                                '</tr>'
                );
 
-               $allGroups = array_unique( array_merge( 
+               $allGroups = array_unique( array_merge(
                        array_keys( $wgGroupPermissions ),
                        array_keys( $wgRevokePermissions ),
                        array_keys( $wgAddGroups ),
@@ -70,14 +70,14 @@ class SpecialListGroupRights extends SpecialPage {
                        array_keys( $wgGroupsRemoveFromSelf )
                ) );
                asort( $allGroups );
-                               
+
                foreach ( $allGroups as $group ) {
-                       $permissions = isset( $wgGroupPermissions[$group] ) 
-                               ? $wgGroupPermissions[$group] 
+                       $permissions = isset( $wgGroupPermissions[$group] )
+                               ? $wgGroupPermissions[$group]
                                : array();
                        $groupname = ( $group == '*' ) // Replace * with a more descriptive groupname
-                               ? 'all' 
-                               : $group; 
+                               ? 'all'
+                               : $group;
 
                        $msg = wfMessage( 'group-' . $groupname );
                        $groupnameLocalized = !$msg->isBlank() ? $msg->text() : $groupname;
@@ -153,7 +153,7 @@ class SpecialListGroupRights extends SpecialPage {
         * @return string List of all granted permissions, separated by comma separator
         */
         private static function formatPermissions( $permissions, $revoke, $add, $remove, $addSelf, $removeSelf ) {
-               global $wgLang;
+               global $wgLang;
 
                $r = array();
                foreach( $permissions as $permission => $granted ) {
index 21f8aec..8a2444e 100644 (file)
@@ -33,7 +33,7 @@ class ListredirectsPage extends QueryPage {
        function __construct( $name = 'Listredirects' ) {
                parent::__construct( $name );
        }
-       
+
        function isExpensive() { return true; }
        function isSyndicated() { return false; }
        function sortDescending() { return false; }
@@ -60,7 +60,7 @@ class ListredirectsPage extends QueryPage {
        function getOrderFields() {
                return array ( 'p1.page_namespace', 'p1.page_title' );
        }
-       
+
        /**
         * Cache page existence for performance
         */
@@ -78,7 +78,7 @@ class ListredirectsPage extends QueryPage {
                        $db->dataSeek( $res, 0 );
                }
        }
-       
+
        protected function getRedirectTarget( $row ) {
                if ( isset( $row->rd_title ) ) {
                        return Title::makeTitle( $row->rd_namespace,
index a4d0ec5..0800e43 100644 (file)
@@ -32,7 +32,7 @@ class LonelyPagesPage extends PageQueryPage {
        function __construct( $name = 'Lonelypages' ) {
                parent::__construct( $name );
        }
-       
+
        function getPageHeader() {
                return wfMsgExt( 'lonelypagestext', array( 'parse' ) );
        }
@@ -68,7 +68,7 @@ class LonelyPagesPage extends PageQueryPage {
                                                'tl_title = page_title' ) ) )
                );
        }
-       
+
        function getOrderFields() {
                // For some crazy reason ordering by a constant
                // causes a filesort in MySQL 5
index 43f8f8d..a64b287 100644 (file)
@@ -41,7 +41,7 @@ class MIMEsearchPage extends QueryPage {
        function linkParameters() {
                return array( 'mime' => "{$this->major}/{$this->minor}" );
        }
-       
+
        public function getQueryInfo() {
                return array(
                        'tables' => array( 'image' ),
@@ -57,11 +57,11 @@ class MIMEsearchPage extends QueryPage {
                                        'img_minor_mime' => $this->minor )
                );
        }
-       
+
        function execute( $par ) {
                global $wgRequest, $wgOut;
                $mime = $par ? $par : $wgRequest->getText( 'mime' );
-               
+
                $this->setHeaders();
                $this->outputHeader();
                $wgOut->addHTML(
@@ -82,7 +82,7 @@ class MIMEsearchPage extends QueryPage {
                }
                parent::execute( $par );
        }
-               
+
 
        function formatResult( $skin, $result ) {
                global $wgContLang, $wgLang;
index 43b4ef6..5ce148c 100644 (file)
@@ -116,7 +116,7 @@ class SpecialMergeHistory extends SpecialPage {
                                wfEscapeWikiText( $this->mDestObj->getPrefixedText() )
                        );
                }
-               
+
                if ( $this->mTargetObj && $this->mDestObj && $this->mTargetObj->equals( $this->mDestObj ) ) {
                        $errors[] = wfMsgExt( 'mergehistory-same-destination', array( 'parse' ) );
                }
index 41279e3..6f3b0a3 100644 (file)
@@ -34,7 +34,7 @@ class MostcategoriesPage extends QueryPage {
        function __construct( $name = 'Mostcategories' ) {
                parent::__construct( $name );
        }
-       
+
        function isExpensive() { return true; }
        function isSyndicated() { return false; }
 
index aaa07d7..73dd4f0 100644 (file)
@@ -35,7 +35,7 @@ class MostlinkedPage extends QueryPage {
        function __construct( $name = 'Mostlinked' ) {
                parent::__construct( $name );
        }
-       
+
        function isExpensive() { return true; }
        function isSyndicated() { return false; }
 
index b4527f8..242e26f 100644 (file)
@@ -34,7 +34,7 @@ class MostlinkedCategoriesPage extends QueryPage {
        function __construct( $name = 'Mostlinkedcategories' ) {
                parent::__construct( $name );
        }
-       
+
        function isExpensive() { return true; }
        function isSyndicated() { return false; }
 
index 78f806f..d9fe994 100644 (file)
@@ -21,7 +21,7 @@
  * @ingroup SpecialPage
  * @author Rob Church <robchur@gmail.com>
  */
+
 /**
  * Special page lists templates with a large number of
  * transclusion links, i.e. "most used" templates
index 6c30e54..b025331 100644 (file)
@@ -27,7 +27,7 @@ class MostrevisionsPage extends FewestrevisionsPage {
        function __construct( $name = 'Mostrevisions' ) {
                parent::__construct( $name );
        }
-       
+
        function sortDescending() {
                return true;
        }
index 5c04d21..2be33d0 100644 (file)
@@ -215,7 +215,7 @@ class MovePageForm extends UnlistedSpecialPage {
                         Xml::element( 'legend', null, wfMsg( 'move-page-legend' ) ) .
                         Xml::openElement( 'table', array( 'border' => '0', 'id' => 'mw-movepage-table' ) ) .
                         "<tr>
-                               <td class='mw-label'>" .
+                               <td class='mw-label'>" .
                                        wfMsgHtml( 'movearticle' ) .
                                "</td>
                                <td class='mw-input'>
index cecd7df..6ee9e46 100644 (file)
@@ -102,7 +102,7 @@ function wfSpecialNewimages( $par, $specialPage ) {
                $invertSort = true;
        }
        $sql = 'SELECT img_size, img_name, img_user, img_user_text,'.
-            "img_description,img_timestamp FROM $image";
+                "img_description,img_timestamp FROM $image";
 
        if( $hidebotsql ) {
                $sql .= $hidebotsql;
index e63aeee..a44ce73 100644 (file)
@@ -61,7 +61,7 @@ class SpecialPreferences extends SpecialPage {
                                'savedprefs'
                        );
                }
-               
+
                if ( $wgRequest->getCheck( 'eauth' ) ) {
                        $wgOut->wrapWikiMsg( "<div class='error' style='clear: both;'>\n$1\n</div>",
                                                                        'eauthentsent', $wgUser->getName() );
index 5797f35..ff66cbe 100644 (file)
  */
 class SpecialPrefixindex extends SpecialAllpages {
        // Inherit $maxPerPage
-       
+
        function __construct(){
                parent::__construct( 'Prefixindex' );
        }
-       
+
        /**
         * Entry point : initialise variables and call subfunctions.
         * @param $par String: becomes "FOO" when called like Special:Prefixindex/FOO (default null)
@@ -70,7 +70,7 @@ class SpecialPrefixindex extends SpecialAllpages {
                        $wgOut->addHTML( $this->namespacePrefixForm( $namespace, null ) );
                }
        }
-       
+
        /**
        * HTML for the top form
        * @param $namespace Integer: a namespace constant (default NS_MAIN).
@@ -160,7 +160,7 @@ class SpecialPrefixindex extends SpecialAllpages {
                        $n = 0;
                        if( $res->numRows() > 0 ) {
                                $out = Xml::openElement( 'table', array( 'border' => '0', 'id' => 'mw-prefixindex-list-table' ) );
-       
+
                                while( ( $n < $this->maxPerPage ) && ( $s = $res->fetchObject() ) ) {
                                        $t = Title::makeTitle( $s->page_namespace, $s->page_title );
                                        if( $t ) {
index 5d23788..4bb6714 100644 (file)
@@ -199,7 +199,7 @@ class SpecialProtectedpages extends SpecialPage {
                return
                        Xml::checkLabel( wfMsg('protectedpages-indef'), 'indefonly', 'indefonly', $indefOnly ) . "\n";
        }
-       
+
        /**
         * @return string Formatted HTML
         */
@@ -294,7 +294,7 @@ class ProtectedPagesPager extends AlphabeticPager {
        public $mForm, $mConds;
        private $type, $level, $namespace, $sizetype, $size, $indefonly;
 
-       function __construct( $form, $conds = array(), $type, $level, $namespace, $sizetype='', $size=0, 
+       function __construct( $form, $conds = array(), $type, $level, $namespace, $sizetype='', $size=0,
                $indefonly = false, $cascadeonly = false )
        {
                $this->mForm = $form;
@@ -329,7 +329,7 @@ class ProtectedPagesPager extends AlphabeticPager {
                                'OR pr_expiry IS NULL)';
                $conds[] = 'page_id=pr_page';
                $conds[] = 'pr_type=' . $this->mDb->addQuotes( $this->type );
-               
+
                if( $this->sizetype=='min' ) {
                        $conds[] = 'page_len>=' . $this->size;
                } else if( $this->sizetype=='max' ) {
index 4e3febe..fecd355 100644 (file)
@@ -65,7 +65,7 @@ class RandomPage extends SpecialPage {
 
                if( is_null( $title ) ) {
                        $this->setHeaders();
-                       $wgOut->addWikiMsg( strtolower( $this->mName ) . '-nopages', 
+                       $wgOut->addWikiMsg( strtolower( $this->mName ) . '-nopages',
                                $this->getNsList(), count( $this->namespaces ) );
                        return;
                }
index 487b0f2..dced986 100644 (file)
@@ -298,8 +298,8 @@ class SpecialRecentChanges extends IncludableSpecialPage {
                                        MWNamespace::getAssociated( $opts['namespace'] )
                                );
                                $condition = "(rc_namespace $operator $selectedNS "
-                                          . $boolean
-                                          . " rc_namespace $operator $associatedNS)";
+                                                  . $boolean
+                                                  . " rc_namespace $operator $associatedNS)";
                        }
 
                        $conds[] = $condition;
index 49cce03..873055c 100644 (file)
@@ -172,16 +172,16 @@ class SpecialRecentchangeslinked extends SpecialRecentChanges {
                        else
                                $order = array();
 
-                       
-                       $query = $dbr->selectSQLText( 
-                               array_merge( $tables, array( $link_table ) ), 
-                               $select, 
+
+                       $query = $dbr->selectSQLText(
+                               array_merge( $tables, array( $link_table ) ),
+                               $select,
                                $conds + $subconds,
-                               __METHOD__, 
+                               __METHOD__,
                                $order + $query_options,
                                $join_conds + array( $link_table => array( 'INNER JOIN', $subjoin ) )
                        );
-                       
+
                        if( $dbr->unionSupportsOrderAndLimit())
                                $query = $dbr->limitResult( $query, $limit );
 
@@ -197,7 +197,7 @@ class SpecialRecentchangeslinked extends SpecialRecentChanges {
                        $sql = $dbr->unionQueries($subsql, false).' ORDER BY rc_timestamp DESC';
                        $sql = $dbr->limitResult($sql, $limit, false);
                }
-               
+
                $res = $dbr->query( $sql, __METHOD__ );
 
                if( $res->numRows() == 0 )
@@ -205,7 +205,7 @@ class SpecialRecentchangeslinked extends SpecialRecentChanges {
 
                return $res;
        }
-       
+
        function getExtraOptions( $opts ){
                $opts->consumeValues( array( 'showlinkedto', 'target', 'tagfilter' ) );
                $extraOpts = array();
@@ -252,7 +252,7 @@ class SpecialRecentchangeslinked extends SpecialRecentChanges {
 
        function setBottomText( OutputPage $out, FormOptions $opts ) {
                if( isset( $this->mResultEmpty ) && $this->mResultEmpty ){
-                       $out->addWikiMsg( 'recentchangeslinked-noresult' );     
+                       $out->addWikiMsg( 'recentchangeslinked-noresult' );
                }
        }
 }
index 256cc90..cda1e9f 100644 (file)
@@ -47,7 +47,7 @@ class SpecialResetpass extends SpecialPage {
                $this->mNewpass = $wgRequest->getVal( 'wpNewPassword' );
                $this->mRetype = $wgRequest->getVal( 'wpRetype' );
                $this->mDomain = $wgRequest->getVal( 'wpDomain' );
-               
+
                $this->setHeaders();
                $this->outputHeader();
                $wgOut->disallowUserJs();
@@ -96,7 +96,7 @@ class SpecialResetpass extends SpecialPage {
                }
                $this->showForm();
        }
-       
+
        function doReturnTo() {
                global $wgRequest, $wgOut;
                $titleObj = Title::newFromText( $wgRequest->getVal( 'returnto' ) );
@@ -127,7 +127,7 @@ class SpecialResetpass extends SpecialPage {
                        $rememberMe = '<tr>' .
                                '<td></td>' .
                                '<td class="mw-input">' .
-                                       Xml::checkLabel( 
+                                       Xml::checkLabel(
                                                wfMsgExt( 'remembermypassword', 'parsemag', $wgLang->formatNum( ceil( $wgCookieExpiration / ( 3600 * 24 ) ) ) ),
                                                'wpRemember', 'wpRemember',
                                                $wgRequest->getCheck( 'wpRemember' ) ) .
@@ -193,7 +193,7 @@ class SpecialResetpass extends SpecialPage {
                        $out .= "\t<td class='mw-label'>";
                        if ( $type != 'text' )
                                $out .= Xml::label( wfMsg( $label ), $name );
-                       else 
+                       else
                                $out .=  wfMsgHtml( $label );
                        $out .= "</td>\n";
                        $out .= "\t<td class='mw-input'>$field</td>\n";
@@ -211,7 +211,7 @@ class SpecialResetpass extends SpecialPage {
                if( !$user || $user->isAnon() ) {
                        throw new PasswordError( 'no such user' );
                }
-               
+
                if( $newpass !== $retype ) {
                        wfRunHooks( 'PrefsPasswordAudit', array( $user, $newpass, 'badretype' ) );
                        throw new PasswordError( wfMsg( 'badretype' ) );
@@ -221,7 +221,7 @@ class SpecialResetpass extends SpecialPage {
                        wfRunHooks( 'PrefsPasswordAudit', array( $user, $newpass, 'wrongpassword' ) );
                        throw new PasswordError( wfMsg( 'resetpass-wrong-oldpass' ) );
                }
-               
+
                try {
                        $user->setPassword( $this->mNewpass );
                        wfRunHooks( 'PrefsPasswordAudit', array( $user, $newpass, 'success' ) );
@@ -230,7 +230,7 @@ class SpecialResetpass extends SpecialPage {
                        wfRunHooks( 'PrefsPasswordAudit', array( $user, $newpass, 'error' ) );
                        throw new PasswordError( $e->getMessage() );
                }
-               
+
                $user->setCookies();
                $user->saveSettings();
        }
index 9832137..638f235 100644 (file)
@@ -108,7 +108,7 @@ class SpecialSpecialpages extends UnlistedSpecialPage {
                        );
                        foreach( $sortedPages as $desc => $specialpage ) {
                                list( $title, $restricted, $expensive) = $specialpage;
-                               
+
                                $pageClasses = array();
                                if ( $expensive && $wgMiserMode ){
                                        $includesCachedPages = true;
@@ -118,7 +118,7 @@ class SpecialSpecialpages extends UnlistedSpecialPage {
                                        $includesRestrictedPages = true;
                                        $pageClasses[] = 'mw-specialpagerestricted';
                                }
-                               
+
                                $link = $sk->linkKnown( $title , htmlspecialchars( $desc ) );
                                $wgOut->addHTML( Html::rawElement( 'li', array( 'class' => implode( ' ', $pageClasses ) ), $link ) . "\n" );
 
index 046f525..c1d05f2 100644 (file)
  * @ingroup SpecialPage
  */
 class SpecialStatistics extends SpecialPage {
-       
+
        private $views, $edits, $good, $images, $total, $users,
                        $activeUsers = 0;
-       
+
        public function __construct() {
                parent::__construct( 'Statistics' );
        }
-       
+
        public function execute( $par ) {
                global $wgOut, $wgMemc;
                global $wgDisableCounters, $wgMiserMode;
-               
+
                $this->setHeaders();
                $wgOut->addModuleStyles( 'mediawiki.special' );
-       
+
                $this->views = SiteStats::views();
                $this->edits = SiteStats::edits();
                $this->good = SiteStats::articles();
@@ -51,13 +51,13 @@ class SpecialStatistics extends SpecialPage {
                $this->users = SiteStats::users();
                $this->activeUsers = SiteStats::activeUsers();
                $this->hook = '';
-       
+
                # Staticic - views
                $viewsStats = '';
                if( !$wgDisableCounters ) {
                        $viewsStats = $this->getViewsStats();
                }
-               
+
                # Set active user count
                if( !$wgMiserMode ) {
                        $key = wfMemcKey( 'sitestats', 'activeusers-updated' );
@@ -88,7 +88,7 @@ class SpecialStatistics extends SpecialPage {
                if( !$wgDisableCounters && !$wgMiserMode ) {
                        $text .= $this->getMostViewedPages();
                }
-               
+
                # Statistic - other
                $extraStats = array();
                if( wfRunHooks( 'SpecialStatsAddExtra', array( &$extraStats ) ) ) {
@@ -120,7 +120,7 @@ class SpecialStatistics extends SpecialPage {
                        $msg = wfMessage( $descMsg, $descMsgParam );
                        if ( $msg->exists() ) {
                                $descriptionText = $msg->parse();
-                               $text .= "<br />" . Xml::element( 'small', array( 'class' => 'mw-statistic-desc'), 
+                               $text .= "<br />" . Xml::element( 'small', array( 'class' => 'mw-statistic-desc'),
                                        " ($descriptionText)" );
                        }
                }
@@ -130,7 +130,7 @@ class SpecialStatistics extends SpecialPage {
                        Html::rawElement( 'td', array( 'class' => 'mw-statistics-numbers' ), $number )
                );
        }
-       
+
        /**
         * Each of these methods is pretty self-explanatory, get a particular
         * row for the table of statistics
@@ -244,7 +244,7 @@ class SpecialStatistics extends SpecialPage {
                                        $wgLang->formatNum( $this->views ),
                                                array ( 'class' => 'mw-statistics-views-total' ), 'statistics-views-total-desc' ) .
                                $this->formatRow( wfMsgExt( 'statistics-views-peredit', array( 'parseinline' ) ),
-                                       $wgLang->formatNum( sprintf( '%.2f', $this->edits ? 
+                                       $wgLang->formatNum( sprintf( '%.2f', $this->edits ?
                                                $this->views / $this->edits : 0 ) ),
                                                array ( 'class' => 'mw-statistics-views-peredit' ) );
        }
@@ -280,7 +280,7 @@ class SpecialStatistics extends SpecialPage {
                                        if( $title instanceof Title ) {
                                                $text .= $this->formatRow( $sk->link( $title ),
                                                                $wgLang->formatNum( $row->page_counter ) );
-       
+
                                        }
                                }
                                $res->free();
@@ -297,14 +297,14 @@ class SpecialStatistics extends SpecialPage {
                $return = Xml::openElement( 'tr' ) .
                        Xml::tags( 'th', array( 'colspan' => '2' ), wfMsgExt( 'statistics-header-hooks', array( 'parseinline' ) ) ) .
                        Xml::closeElement( 'tr' );
-                       
+
                foreach( $stats as $name => $number ) {
                        $name = htmlspecialchars( $name );
                        $number = htmlspecialchars( $number );
-                       
+
                        $return .= $this->formatRow( $name, $wgLang->formatNum( $number ), array( 'class' => 'mw-statistics-hook' ) );
                }
-               
+
                return $return;
        }
 }
index cd15b21..d3f4e7d 100644 (file)
@@ -74,7 +74,7 @@ class SpecialTags extends SpecialPage {
                }
 
                global $wgLang;
-               
+
                $newRow = '';
                $newRow .= Xml::tags( 'td', null, Xml::element( 'tt', null, $tag ) );
 
index 585e651..418cc5e 100644 (file)
@@ -142,7 +142,7 @@ class SpecialUnblock extends SpecialPage {
                                                break;
                                }
                        }
-                       
+
                } else {
                        $fields['Target']['default'] = $this->target;
                        unset( $fields['Name'] );
index d6a7fef..c71dc37 100644 (file)
@@ -45,7 +45,7 @@ class UncategorizedImagesPage extends ImageQueryPage {
        function isSyndicated() {
                return false;
        }
-       
+
        function getQueryInfo() {
                return array (
                        'tables' => array( 'page', 'categorylinks' ),
index 26eb36a..765c9c3 100644 (file)
@@ -58,7 +58,7 @@ class UncategorizedPagesPage extends PageQueryPage {
                                        'LEFT JOIN', 'cl_from = page_id' ) )
                );
        }
-       
+
        function getOrderFields() {
                // For some crazy reason ordering by a constant
                // causes a filesort
index 42f16f4..f5015e9 100644 (file)
@@ -111,7 +111,7 @@ class PageArchive {
                $res = $dbr->select( 'archive',
                        array( 'ar_minor_edit', 'ar_timestamp', 'ar_user', 'ar_user_text', 'ar_comment', 'ar_len', 'ar_deleted' ),
                        array( 'ar_namespace' => $this->title->getNamespace(),
-                              'ar_title' => $this->title->getDBkey() ),
+                                  'ar_title' => $this->title->getDBkey() ),
                        'PageArchive::listRevisions',
                        array( 'ORDER BY' => 'ar_timestamp DESC' ) );
                $ret = $dbr->resultObject( $res );
@@ -194,8 +194,8 @@ class PageArchive {
                                'ar_deleted',
                                'ar_len' ),
                        array( 'ar_namespace' => $this->title->getNamespace(),
-                              'ar_title' => $this->title->getDBkey(),
-                              'ar_timestamp' => $dbr->timestamp( $timestamp ) ),
+                                  'ar_title' => $this->title->getDBkey(),
+                                  'ar_timestamp' => $dbr->timestamp( $timestamp ) ),
                        __METHOD__ );
                if( $row ) {
                        return Revision::newFromArchiveRow( $row, array( 'page' => $this->title->getArticleId() ) );
@@ -221,8 +221,8 @@ class PageArchive {
                $row = $dbr->selectRow( 'archive',
                        'ar_timestamp',
                        array( 'ar_namespace' => $this->title->getNamespace(),
-                              'ar_title' => $this->title->getDBkey(),
-                              'ar_timestamp < ' .
+                                  'ar_title' => $this->title->getDBkey(),
+                                  'ar_timestamp < ' .
                                                $dbr->addQuotes( $dbr->timestamp( $timestamp ) ) ),
                        __METHOD__,
                        array(
@@ -293,7 +293,7 @@ class PageArchive {
                $row = $dbr->selectRow( 'archive',
                        array( 'ar_text', 'ar_flags', 'ar_text_id' ),
                        array( 'ar_namespace' => $this->title->getNamespace(),
-                              'ar_title' => $this->title->getDBkey() ),
+                                  'ar_title' => $this->title->getDBkey() ),
                        __METHOD__,
                        array( 'ORDER BY' => 'ar_timestamp DESC' ) );
                if( $row ) {
@@ -312,7 +312,7 @@ class PageArchive {
                $dbr = wfGetDB( DB_SLAVE );
                $n = $dbr->selectField( 'archive', 'COUNT(ar_title)',
                        array( 'ar_namespace' => $this->title->getNamespace(),
-                              'ar_title' => $this->title->getDBkey() ) );
+                                  'ar_title' => $this->title->getDBkey() ) );
                return ($n > 0);
        }
 
@@ -407,7 +407,7 @@ class PageArchive {
                $page = $dbw->selectRow( 'page',
                        array( 'page_id', 'page_latest' ),
                        array( 'page_namespace' => $this->title->getNamespace(),
-                              'page_title'     => $this->title->getDBkey() ),
+                                  'page_title'     => $this->title->getDBkey() ),
                        __METHOD__,
                        $options
                );
index 6c8f6c5..6407de4 100644 (file)
@@ -30,15 +30,15 @@ class UnusedimagesPage extends ImageQueryPage {
        function __construct( $name = 'Unusedimages' ) {
                parent::__construct( $name );
        }
-       
+
        function isExpensive() {
                return true;
        }
-       
+
        function sortDescending() {
                return false;
        }
-       
+
        function isSyndicated() {
                return false;
        }
index eaf0544..cdb4ccb 100644 (file)
@@ -34,7 +34,7 @@ class UnusedtemplatesPage extends QueryPage {
        function __construct( $name = 'Unusedtemplates' ) {
                parent::__construct( $name );
        }
-       
+
        function isExpensive() { return true; }
        function isSyndicated() { return false; }
        function sortDescending() { return false; }
@@ -53,7 +53,7 @@ class UnusedtemplatesPage extends QueryPage {
                                        'tl_namespace = page_namespace' ) ) )
                );
        }
-       
+
        function formatResult( $skin, $result ) {
                $title = Title::makeTitle( NS_TEMPLATE, $result->title );
                $pageLink = $skin->linkKnown(
index 5ad9bb5..92d0355 100644 (file)
@@ -34,7 +34,7 @@ class UnwatchedpagesPage extends QueryPage {
        function __construct( $name = 'Unwatchedpages' ) {
                parent::__construct( $name, 'unwatchedpages' );
        }
-       
+
        function isExpensive() { return true; }
        function isSyndicated() { return false; }
 
@@ -55,7 +55,7 @@ class UnwatchedpagesPage extends QueryPage {
        }
 
        function sortDescending() { return false; }
-       
+
        function getOrderFields() {
                return array( 'page_namespace', 'page_title' );
        }
index 9a8f0e2..89aa7fe 100644 (file)
@@ -113,7 +113,7 @@ class SpecialUpload extends SpecialPage {
 
                $this->mForReUpload       = $request->getBool( 'wpForReUpload' ); // updating a file
                $this->mCancelUpload      = $request->getCheck( 'wpCancelUpload' )
-                                        || $request->getCheck( 'wpReUpload' ); // b/w compat
+                                                                || $request->getCheck( 'wpReUpload' ); // b/w compat
 
                // If it was posted check for the token (no remote POST'ing with user credentials)
                $token = $request->getVal( 'wpEditToken' );
@@ -204,7 +204,7 @@ class SpecialUpload extends SpecialPage {
                                wfDebug( "Hook 'UploadForm:initial' broke output of the upload form" );
                                return;
                        }
-                       
+
 
                        $this->showUploadForm( $this->getUploadForm() );
                }
@@ -275,7 +275,7 @@ class SpecialUpload extends SpecialPage {
                $desiredTitleObj = Title::makeTitleSafe( NS_FILE, $this->mDesiredDestName );
                $delNotice = ''; // empty by default
                if ( $desiredTitleObj instanceof Title && !$desiredTitleObj->exists() ) {
-                       LogEventsList::showLogExtract( $delNotice, array( 'delete', 'move' ), 
+                       LogEventsList::showLogExtract( $delNotice, array( 'delete', 'move' ),
                                $desiredTitleObj->getPrefixedText(),
                                '', array( 'lim' => 10,
                                           'conds' => array( "log_action != 'revision'" ),
@@ -286,8 +286,8 @@ class SpecialUpload extends SpecialPage {
                $form->addPreText( $delNotice );
 
                # Add text to form
-               $form->addPreText( '<div id="uploadtext">' . 
-                       wfMsgExt( 'uploadtext', 'parse', array( $this->mDesiredDestName ) ) . 
+               $form->addPreText( '<div id="uploadtext">' .
+                       wfMsgExt( 'uploadtext', 'parse', array( $this->mDesiredDestName ) ) .
                        '</div>' );
                # Add upload error message
                $form->addPreText( $message );
@@ -365,8 +365,8 @@ class SpecialUpload extends SpecialPage {
                # mDestWarningAck is set when some javascript has shown the warning
                # to the user. mForReUpload is set when the user clicks the "upload a
                # new version" link.
-               if ( !$warnings || ( count( $warnings ) == 1 && 
-                       isset( $warnings['exists'] ) && 
+               if ( !$warnings || ( count( $warnings ) == 1 &&
+                       isset( $warnings['exists'] ) &&
                        ( $this->mDestWarningAck || $this->mForReUpload ) ) )
                {
                        return false;
@@ -450,7 +450,7 @@ class SpecialUpload extends SpecialPage {
                        $this->processVerificationError( $details );
                        return;
                }
-               
+
                // Verify permissions for this title
                $permErrors = $this->mUpload->verifyPermissions( $wgUser );
                if( $permErrors !== true ) {
@@ -599,16 +599,16 @@ class SpecialUpload extends SpecialPage {
                                }
                                $msg->params( implode( $sep, $wgFileExtensions ),
                                        count( $wgFileExtensions ) );
-                               
-                               // Add PLURAL support for the first parameter. This results 
-                               // in a bit unlogical parameter sequence, but does not break 
-                               // old translations 
+
+                               // Add PLURAL support for the first parameter. This results
+                               // in a bit unlogical parameter sequence, but does not break
+                               // old translations
                                if ( isset( $details['blacklistedExt'] ) ) {
                                        $msg->numParams( count( $details['blacklistedExt'] ) );
                                } else {
                                        $msg->numParams( 1 );
                                }
-                               
+
                                $this->showUploadError( $msg->parse() );
                                break;
                        case UploadBase::VERIFICATION_ERROR:
@@ -775,7 +775,7 @@ class UploadForm extends HTMLForm {
        protected $mTextAfterSummary;
 
        protected $mSourceIds;
-       
+
        protected $mMaxFileSize = array();
 
        public function __construct( $options = array() ) {
@@ -794,7 +794,7 @@ class UploadForm extends HTMLForm {
                        ? $options['texttop'] : '';
 
                $this->mTextAfterSummary = isset( $options['textaftersummary'] )
-                       ? $options['textaftersummary'] : ''; 
+                       ? $options['textaftersummary'] : '';
 
                $sourceDescriptor = $this->getSourceSection();
                $descriptor = $sourceDescriptor
@@ -857,10 +857,10 @@ class UploadForm extends HTMLForm {
                        );
                }
 
-               $this->mMaxUploadSize['file'] = min( 
-                       wfShorthandToInteger( ini_get( 'upload_max_filesize' ) ), 
+               $this->mMaxUploadSize['file'] = min(
+                       wfShorthandToInteger( ini_get( 'upload_max_filesize' ) ),
                        UploadBase::getMaxUploadSize( 'file' ) );
-                       
+
                $descriptor['UploadFile'] = array(
                        'class' => 'UploadSourceField',
                        'section' => 'source',
@@ -951,21 +951,21 @@ class UploadForm extends HTMLForm {
                        try {
                                $file = $stash->getFile( $this->mSessionKey );
                        } catch ( MWException $e ) {
-                               $file = null;   
+                               $file = null;
                        }
                        if ( $file ) {
                                global $wgContLang;
-                               
+
                                $mto = $file->transform( array( 'width' => 120 ) );
-                               $this->addHeaderText( 
+                               $this->addHeaderText(
                                        '<div class="thumb t' . $wgContLang->alignEnd() . '">' .
-                                       Html::element( 'img', array( 
+                                       Html::element( 'img', array(
                                                'src' => $mto->getUrl(),
                                                'class' => 'thumbimage',
                                        ) ) . '</div>', 'description' );
                        }
                }
-               
+
                $descriptor = array(
                        'DestFile' => array(
                                'type' => 'text',
@@ -1071,7 +1071,7 @@ class UploadForm extends HTMLForm {
                        'id' => 'wpDestFileWarningAck',
                        'default' => $this->mDestWarningAck ? '1' : '',
                );
-               
+
                if ( $this->mForReUpload ) {
                        $descriptor['ForReUpload'] = array(
                                'type' => 'hidden',
@@ -1117,7 +1117,7 @@ class UploadForm extends HTMLForm {
 
                $wgOut->addScript( Skin::makeVariablesScript( $scriptVars ) );
 
-               
+
                $wgOut->addModules( array(
                        'mediawiki.legacy.edit', // For <charinsert> support
                        'mediawiki.legacy.upload', // Old form stuff...
index c3c1bdc..78f4bb8 100644 (file)
@@ -20,7 +20,7 @@ class SpecialUploadStash extends UnlistedSpecialPage {
        // UploadStash
        private $stash;
 
-       // Since we are directly writing the file to STDOUT, 
+       // Since we are directly writing the file to STDOUT,
        // we should not be reading in really big files and serving them out.
        //
        // We also don't want people using this as a file drop, even if they
@@ -81,7 +81,7 @@ class SpecialUploadStash extends UnlistedSpecialPage {
                                return $this->outputLocalFile( $params['file'] );
                        }
                } catch( UploadStashFileNotFoundException $e ) {
-                       $code = 404; 
+                       $code = 404;
                        $message = $e->getMessage();
                } catch( UploadStashZeroLengthFileException $e ) {
                        $code = 500;
@@ -100,12 +100,12 @@ class SpecialUploadStash extends UnlistedSpecialPage {
                wfHttpError( $code, OutputPage::getStatusMessage( $code ), $message );
                return false;
        }
-       
+
        /**
-        * Parse the key passed to the SpecialPage. Returns an array containing 
-        * the associated file object, the type ('file' or 'thumb') and if 
+        * Parse the key passed to the SpecialPage. Returns an array containing
+        * the associated file object, the type ('file' or 'thumb') and if
         * application the transform parameters
-        * 
+        *
         * @param string $key
         * @return array
         */
@@ -122,17 +122,17 @@ class SpecialUploadStash extends UnlistedSpecialPage {
                        $srcNamePos = strrpos( $thumbPart, $fileName );
                        if ( $srcNamePos === false || $srcNamePos < 1 ) {
                                throw new UploadStashBadPathException( 'Unrecognized thumb name' );
-                       } 
+                       }
                        $paramString = substr( $thumbPart, 0, $srcNamePos - 1 );
-               
+
                        $handler = $file->getHandler();
-                       $params = $handler->parseParamString( $paramString );                           
-                       return array( 'file' => $file, 'type' => $type, 'params' => $params ); 
+                       $params = $handler->parseParamString( $paramString );
+                       return array( 'file' => $file, 'type' => $type, 'params' => $params );
                }
-               
+
                return array( 'file' => $file, 'type' => $type );
        }
-               
+
 
 
 
@@ -140,10 +140,10 @@ class SpecialUploadStash extends UnlistedSpecialPage {
         * Get a thumbnail for file, either generated locally or remotely, and stream it out
         * @param String $key: key for the file in the stash
         * @param int $width: width of desired thumbnail
-        * @return boolean success 
-        */
+        * @return boolean success
+        */
        private function outputThumbFromStash( $file, $params ) {
-               
+
                // this global, if it exists, points to a "scaler", as you might find in the Wikimedia Foundation cluster. See outputRemoteScaledThumb()
                // this is part of our horrible NFS-based system, we create a file on a mount point here, but fetch the scaled file from somewhere else that
                // happens to share it over NFS
@@ -162,9 +162,9 @@ class SpecialUploadStash extends UnlistedSpecialPage {
 
        /**
         * Scale a file (probably with a locally installed imagemagick, or similar) and output it to STDOUT.
-        * @param $file: File object
+        * @param $file: File object
         * @param $params: scaling parameters ( e.g. array( width => '50' ) );
-        * @param $flags: scaling flags ( see File:: constants )
+        * @param $flags: scaling flags ( see File:: constants )
         * @throws MWException
         * @return boolean success
         */
@@ -172,7 +172,7 @@ class SpecialUploadStash extends UnlistedSpecialPage {
 
                // n.b. this is stupid, we insist on re-transforming the file every time we are invoked. We rely
                // on HTTP caching to ensure this doesn't happen.
-               
+
                $flags |= File::RENDER_NOW;
 
                $thumbnailImage = $file->transform( $params, $flags );
@@ -193,37 +193,37 @@ class SpecialUploadStash extends UnlistedSpecialPage {
                }
 
                return $this->outputLocalFile( $thumbFile );
-       
+
        }
-       
+
        /**
         * Scale a file with a remote "scaler", as exists on the Wikimedia Foundation cluster, and output it to STDOUT.
-        * Note: unlike the usual thumbnail process, the web client never sees the cluster URL; we do the whole HTTP transaction to the scaler ourselves 
+        * Note: unlike the usual thumbnail process, the web client never sees the cluster URL; we do the whole HTTP transaction to the scaler ourselves
         *  and cat the results out.
-        * Note: We rely on NFS to have propagated the file contents to the scaler. However, we do not rely on the thumbnail being created in NFS and then 
-        *   propagated back to our filesystem. Instead we take the results of the HTTP request instead.  
+        * Note: We rely on NFS to have propagated the file contents to the scaler. However, we do not rely on the thumbnail being created in NFS and then
+        *   propagated back to our filesystem. Instead we take the results of the HTTP request instead.
         * Note: no caching is being done here, although we are instructing the client to cache it forever.
-        * @param $file: File object
+        * @param $file: File object
         * @param $params: scaling parameters ( e.g. array( width => '50' ) );
-        * @param $flags: scaling flags ( see File:: constants )
+        * @param $flags: scaling flags ( see File:: constants )
         * @throws MWException
         * @return boolean success
         */
        private function outputRemoteScaledThumb( $file, $params, $flags ) {
-               
+
                // this global probably looks something like 'http://upload.wikimedia.org/wikipedia/test/thumb/temp'
                // do not use trailing slash
                global $wgUploadStashScalerBaseUrl;
 
-               // We need to use generateThumbName() instead of thumbName(), because 
-               // the suffix needs to match the file name for the remote thumbnailer 
+               // We need to use generateThumbName() instead of thumbName(), because
+               // the suffix needs to match the file name for the remote thumbnailer
                // to work
                $scalerThumbName = $file->generateThumbName( $file->getName(), $params );
-               $scalerThumbUrl = $wgUploadStashScalerBaseUrl . '/' . $file->getUrlRel() . 
+               $scalerThumbUrl = $wgUploadStashScalerBaseUrl . '/' . $file->getUrlRel() .
                        '/' . rawurlencode( $scalerThumbName );
-               
+
                // make a curl call to the scaler to create a thumbnail
-               $httpOptions = array( 
+               $httpOptions = array(
                        'method' => 'GET',
                        'timeout' => 'default'
                );
@@ -251,13 +251,13 @@ class SpecialUploadStash extends UnlistedSpecialPage {
        private function outputLocalFile( $file ) {
                if ( $file->getSize() > self::MAX_SERVE_BYTES ) {
                        throw new SpecialUploadStashTooLargeException();
-               } 
+               }
                self::outputFileHeaders( $file->getMimeType(), $file->getSize() );
                readfile( $file->getPath() );
                return true;
        }
 
-       /** 
+       /**
         * Output HTTP response of raw content
         * Side effect: writes HTTP response to STDOUT.
         * @param String $content: content
@@ -269,11 +269,11 @@ class SpecialUploadStash extends UnlistedSpecialPage {
                        throw new SpecialUploadStashTooLargeException();
                }
                self::outputFileHeaders( $contentType, $size );
-               print $content; 
+               print $content;
                return true;
        }
 
-       /** 
+       /**
         * Output headers for streaming
         * XXX unsure about encoding as binary; if we received from HTTP perhaps we should use that encoding, concatted with semicolon to mimeType as it usually is.
         * Side effect: preps PHP to write headers to STDOUT.
@@ -284,16 +284,16 @@ class SpecialUploadStash extends UnlistedSpecialPage {
                header( "Content-Type: $contentType", true );
                header( 'Content-Transfer-Encoding: binary', true );
                header( 'Expires: Sun, 17-Jan-2038 19:14:07 GMT', true );
-               header( "Content-Length: $size", true ); 
+               header( "Content-Length: $size", true );
        }
 
        /**
-        * Static callback for the HTMLForm in showUploads, to process 
+        * Static callback for the HTMLForm in showUploads, to process
         * Note the stash has to be recreated since this is being called in a static context.
         * This works, because there really is only one stash per logged-in user, despite appearances.
         *
         * @return Status
-        */ 
+        */
        public static function tryClearStashedUploads( $formData ) {
                if ( isset( $formData['Clear'] ) ) {
                        $stash = RepoGroup::singleton()->getLocalRepo()->getUploadStash();
@@ -309,7 +309,7 @@ class SpecialUploadStash extends UnlistedSpecialPage {
         * Default action when we don't have a subpage -- just show links to the uploads we have,
         * Also show a button to clear stashed files
         * @param Status : $status - the result of processRequest
-        */ 
+        */
        private function showUploads( $status = null ) {
                global $wgOut;
                if ( $status === null ) {
@@ -324,24 +324,24 @@ class SpecialUploadStash extends UnlistedSpecialPage {
                // create the form, which will also be used to execute a callback to process incoming form data
                // this design is extremely dubious, but supposedly HTMLForm is our standard now?
 
-               $form = new HTMLForm( array( 
-                       'Clear' => array( 
-                               'type' => 'hidden', 
+               $form = new HTMLForm( array(
+                       'Clear' => array(
+                               'type' => 'hidden',
                                'default' => true,
                                'name' => 'clear',
-                       ) 
+                       )
                ), 'clearStashedUploads' );
-               $form->setSubmitCallback( array( __CLASS__ , 'tryClearStashedUploads' ) ); 
+               $form->setSubmitCallback( array( __CLASS__ , 'tryClearStashedUploads' ) );
                $form->setTitle( $this->getTitle() );
                $form->setSubmitText( wfMsg( 'uploadstash-clear' ) );
 
-               $form->prepareForm();                                                
+               $form->prepareForm();
                $formResult = $form->tryAuthorizedSubmit();
-                                                                    
+
 
                // show the files + form, if there are any, or just say there are none
-               $refreshHtml = Html::element( 'a', 
-                       array( 'href' => $this->getTitle()->getLocalURL() ), 
+               $refreshHtml = Html::element( 'a',
+                       array( 'href' => $this->getTitle()->getLocalURL() ),
                        wfMsg( 'uploadstash-refresh' ) );
                $files = $this->stash->listFiles();
                if ( count( $files ) ) {
@@ -350,7 +350,7 @@ class SpecialUploadStash extends UnlistedSpecialPage {
                        foreach ( $files as $file ) {
                                // TODO: Use Linker::link or even construct the list in plain wikitext
                                $fileListItemsHtml .= Html::rawElement( 'li', array(),
-                                       Html::element( 'a', array( 'href' => 
+                                       Html::element( 'a', array( 'href' =>
                                                $this->getTitle( "file/$file" )->getLocalURL() ), $file )
                                );
                        }
@@ -358,13 +358,13 @@ class SpecialUploadStash extends UnlistedSpecialPage {
                        $form->displayForm( $formResult );
                        $wgOut->addHtml( Html::rawElement( 'p', array(), $refreshHtml ) );
                } else {
-                       $wgOut->addHtml( Html::rawElement( 'p', array(), 
+                       $wgOut->addHtml( Html::rawElement( 'p', array(),
                                Html::element( 'span', array(), wfMsg( 'uploadstash-nofiles' ) )
-                               . ' ' 
+                               . ' '
                                . $refreshHtml
                        ) );
                }
-       
+
                return true;
        }
 }
index 461817a..26edc63 100644 (file)
@@ -89,9 +89,9 @@ class LoginForm extends SpecialPage {
                $this->mPosted = $request->wasPosted();
                $this->mCreateaccount = $request->getCheck( 'wpCreateaccount' );
                $this->mCreateaccountMail = $request->getCheck( 'wpCreateaccountMail' )
-                                           && $wgEnableEmail;
+                                                                       && $wgEnableEmail;
                $this->mMailmypassword = $request->getCheck( 'wpMailmypassword' )
-                                        && $wgEnableEmail;
+                                                                && $wgEnableEmail;
                $this->mLoginattempt = $request->getCheck( 'wpLoginattempt' );
                $this->mAction = $request->getVal( 'action' );
                $this->mRemember = $request->getCheck( 'wpRemember' );
@@ -111,9 +111,9 @@ class LoginForm extends SpecialPage {
                        $this->mEmail = '';
                }
                if( !in_array( 'realname', $wgHiddenPrefs ) ) {
-                   $this->mRealName = $request->getText( 'wpRealName' );
+                       $this->mRealName = $request->getText( 'wpRealName' );
                } else {
-                   $this->mRealName = '';
+                       $this->mRealName = '';
                }
 
                if( !$wgAuth->validDomain( $this->mDomain ) ) {
index 606b669..0654784 100644 (file)
@@ -222,7 +222,7 @@ class UserrightsPage extends SpecialPage {
                                $user->removeGroup( $group );
                        }
                }
-               if( $add ) {
+               if( $add ) {
                        $newGroups = array_merge( $newGroups, $add );
                        foreach( $add as $group ) {
                                $user->addGroup( $group );
index cf78161..1c291a6 100644 (file)
  * @ingroup SpecialPage
  */
 class SpecialVersion extends SpecialPage {
-       
+
        protected $firstExtOpened = false;
 
        protected static $extensionTypes = false;
-       
+
        protected static $viewvcUrls = array(
                'svn+ssh://svn.wikimedia.org/svnroot/mediawiki' => 'http://svn.wikimedia.org/viewvc/mediawiki',
                'http://svn.wikimedia.org/svnroot/mediawiki' => 'http://svn.wikimedia.org/viewvc/mediawiki',
-               # Doesn't work at the time of writing but maybe some day: 
+               # Doesn't work at the time of writing but maybe some day:
                'https://svn.wikimedia.org/viewvc/mediawiki' => 'http://svn.wikimedia.org/viewvc/mediawiki',
        );
 
@@ -50,21 +50,21 @@ class SpecialVersion extends SpecialPage {
         */
        public function execute( $par ) {
                global $wgOut, $wgSpecialVersionShowHooks, $wgContLang, $wgRequest;
-               
+
                $this->setHeaders();
                $this->outputHeader();
                $wgOut->allowClickjacking();
 
                $wgOut->addHTML( Xml::openElement( 'div',
                        array( 'dir' => $wgContLang->getDir() ) ) );
-               $text = 
+               $text =
                        $this->getMediaWikiCredits() .
                        $this->softwareInformation() .
                        $this->getExtensionCredits();
                if ( $wgSpecialVersionShowHooks ) {
                        $text .= $this->getWgHooks();
                }
-               
+
                $wgOut->addWikiText( $text );
                $wgOut->addHTML( $this->IPInfo() );
                $wgOut->addHTML( '</div>' );
@@ -78,7 +78,7 @@ class SpecialVersion extends SpecialPage {
 
        /**
         * Returns wiki text showing the license information.
-        * 
+        *
         * @return string
         */
        private static function getMediaWikiCredits() {
@@ -118,7 +118,7 @@ class SpecialVersion extends SpecialPage {
 
        /**
         * Returns wiki text showing the third party software versions (apache, php, mysql).
-        * 
+        *
         * @return string
         */
        static function softwareInformation() {
@@ -141,14 +141,14 @@ class SpecialVersion extends SpecialPage {
                                        <th>" . wfMsg( 'version-software-product' ) . "</th>
                                        <th>" . wfMsg( 'version-software-version' ) . "</th>
                                </tr>\n";
-                          
+
                foreach( $software as $name => $version ) {
                        $out .= "<tr>
                                        <td>" . $name . "</td>
                                        <td>" . $version . "</td>
                                </tr>\n";
                }
-               
+
                return $out . Xml::closeElement( 'table' );
        }
 
@@ -168,8 +168,8 @@ class SpecialVersion extends SpecialPage {
                        $version = "$wgVersion (r{$info['checkout-rev']})";
                } else {
                        $version = $wgVersion . ' ' .
-                               wfMsg( 
-                                       'version-svn-revision', 
+                               wfMsg(
+                                       'version-svn-revision',
                                        isset( $info['directory-rev'] ) ? $info['directory-rev'] : '',
                                        $info['checkout-rev']
                                );
@@ -178,7 +178,7 @@ class SpecialVersion extends SpecialPage {
                wfProfileOut( __METHOD__ );
                return $version;
        }
-       
+
        /**
         * Return a wikitext-formatted string of the MediaWiki version with a link to
         * the SVN revision if available.
@@ -188,16 +188,16 @@ class SpecialVersion extends SpecialPage {
        public static function getVersionLinked() {
                global $wgVersion, $IP;
                wfProfileIn( __METHOD__ );
-               
+
                $info = self::getSvnInfo( $IP );
-               
+
                if ( isset( $info['checkout-rev'] ) ) {
                        $linkText = wfMsg(
                                'version-svn-revision',
                                isset( $info['directory-rev'] ) ? $info['directory-rev'] : '',
                                $info['checkout-rev']
                        );
-                       
+
                        if ( isset( $info['viewvc-url'] ) ) {
                                $version = "$wgVersion [{$info['viewvc-url']} $linkText]";
                        } else {
@@ -206,7 +206,7 @@ class SpecialVersion extends SpecialPage {
                } else {
                        $version = $wgVersion;
                }
-               
+
                wfProfileOut( __METHOD__ );
                return $version;
        }
@@ -214,13 +214,13 @@ class SpecialVersion extends SpecialPage {
        /**
         * Returns an array with the base extension types.
         * Type is stored as array key, the message as array value.
-        * 
+        *
         * TODO: ideally this would return all extension types, including
         * those added by SpecialVersionExtensionTypes. This is not possible
         * since this hook is passing along $this though.
-        * 
+        *
         * @since 1.17
-        * 
+        *
         * @return array
         */
        public static function getExtensionTypes() {
@@ -234,27 +234,27 @@ class SpecialVersion extends SpecialPage {
                                'skin' => wfMsg( 'version-skins' ),
                                'other' => wfMsg( 'version-other' ),
                        );
-                       
+
                        wfRunHooks( 'ExtensionTypes', array( &self::$extensionTypes ) );
                }
-               
+
                return self::$extensionTypes;
        }
-       
+
        /**
         * Returns the internationalized name for an extension type.
-        * 
+        *
         * @since 1.17
-        * 
+        *
         * @param $type String
-        * 
+        *
         * @return string
         */
        public static function getExtensionTypeName( $type ) {
                $types = self::getExtensionTypes();
                return isset( $types[$type] ) ? $types[$type] : $types['other'];
        }
-       
+
        /**
         * Generate wikitext showing extensions name, URL, author and description.
         *
@@ -268,7 +268,7 @@ class SpecialVersion extends SpecialPage {
                }
 
                $extensionTypes = self::getExtensionTypes();
-               
+
                /**
                 * @deprecated as of 1.17, use hook ExtensionTypes instead.
                 */
@@ -277,25 +277,25 @@ class SpecialVersion extends SpecialPage {
                $out = Xml::element( 'h2', array( 'id' => 'mw-version-ext' ), wfMsg( 'version-extensions' ) ) .
                        Xml::openElement( 'table', array( 'class' => 'wikitable', 'id' => 'sv-ext' ) );
 
-               // Make sure the 'other' type is set to an array. 
+               // Make sure the 'other' type is set to an array.
                if ( !array_key_exists( 'other', $wgExtensionCredits ) ) {
                        $wgExtensionCredits['other'] = array();
                }
-               
+
                // Find all extensions that do not have a valid type and give them the type 'other'.
                foreach ( $wgExtensionCredits as $type => $extensions ) {
                        if ( !array_key_exists( $type, $extensionTypes ) ) {
                                $wgExtensionCredits['other'] = array_merge( $wgExtensionCredits['other'], $extensions );
                        }
                }
-               
+
                // Loop through the extension categories to display their extensions in the list.
                foreach ( $extensionTypes as $type => $message ) {
                        if ( $type != 'other' ) {
                                $out .= $this->getExtensionCategory( $type, $message );
                        }
                }
-               
+
                // We want the 'other' type to be last in the list.
                $out .= $this->getExtensionCategory( 'other', $extensionTypes['other'] );
 
@@ -325,27 +325,27 @@ class SpecialVersion extends SpecialPage {
                        $out .= $this->openExtType( wfMsg( 'version-skin-extension-functions' ), 'skin-extension-functions' );
                        $out .= '<tr><td colspan="4">' . $this->listToText( $wgSkinExtensionFunctions ) . "</td></tr>\n";
                }
-               
+
                $out .= Xml::closeElement( 'table' );
-               
+
                return $out;
        }
-       
+
        /**
         * Creates and returns the HTML for a single extension category.
-        * 
+        *
         * @since 1.17
-        * 
+        *
         * @param $type String
         * @param $message String
-        * 
+        *
         * @return string
         */
        protected function getExtensionCategory( $type, $message ) {
-               global $wgExtensionCredits; 
-               
+               global $wgExtensionCredits;
+
                $out = '';
-               
+
                if ( array_key_exists( $type, $wgExtensionCredits ) && count( $wgExtensionCredits[$type] ) > 0 ) {
                        $out .= $this->openExtType( $message, 'credits-' . $type );
 
@@ -357,7 +357,7 @@ class SpecialVersion extends SpecialPage {
                }
 
                return $out;
-       }       
+       }
 
        /**
         * Callback to sort extensions by type.
@@ -375,14 +375,14 @@ class SpecialVersion extends SpecialPage {
 
        /**
         * Creates and formats the creidts for a single extension and returns this.
-        * 
+        *
         * @param $extension Array
-        * 
+        *
         * @return string
         */
        function getCreditsForExtension( array $extension ) {
                $name = isset( $extension['name'] ) ? $extension['name'] : '[no name]';
-               
+
                if ( isset( $extension['path'] ) ) {
                        $svnInfo = self::getSvnInfo( dirname($extension['path']) );
                        $directoryRev = isset( $svnInfo['directory-rev'] ) ? $svnInfo['directory-rev'] : null;
@@ -400,10 +400,10 @@ class SpecialVersion extends SpecialPage {
                } else {
                        $mainLink = $name;
                }
-               
+
                if ( isset( $extension['version'] ) ) {
-                       $versionText = '<span class="mw-version-ext-version">' . 
-                               wfMsg( 'version-version', $extension['version'] ) . 
+                       $versionText = '<span class="mw-version-ext-version">' .
+                               wfMsg( 'version-version', $extension['version'] ) .
                                '</span>';
                } else {
                        $versionText = '';
@@ -419,11 +419,11 @@ class SpecialVersion extends SpecialPage {
 
                # Make description text.
                $description = isset ( $extension['description'] ) ? $extension['description'] : '';
-               
+
                if( isset ( $extension['descriptionmsg'] ) ) {
                        # Look for a localized description.
                        $descriptionMsg = $extension['descriptionmsg'];
-                       
+
                        if( is_array( $descriptionMsg ) ) {
                                $descriptionMsgKey = $descriptionMsg[0]; // Get the message key
                                array_shift( $descriptionMsg ); // Shift out the message key to get the parameters only
@@ -442,12 +442,12 @@ class SpecialVersion extends SpecialPage {
                        $extNameVer = "<tr>
                                <td colspan=\"2\"><em>$mainLink $versionText</em></td>";
                }
-               
+
                $author = isset ( $extension['author'] ) ? $extension['author'] : array();
                $extDescAuthor = "<td>$description</td>
                        <td>" . $this->listAuthors( $author, false ) . "</td>
                        </tr>\n";
-               
+
                return $extNameVer . $extDescAuthor;
        }
 
@@ -491,13 +491,13 @@ class SpecialVersion extends SpecialPage {
                        $out .= '<tr class="sv-space">' . Html::element( 'td', $opt ) . "</tr>\n";
                }
                $this->firstExtOpened = true;
-               
+
                if( $name ) {
                        $opt['id'] = "sv-$name";
                }
 
                $out .= "<tr>" . Xml::element( 'th', $opt, $text ) . "</tr>\n";
-               
+
                return $out;
        }
 
@@ -535,7 +535,7 @@ class SpecialVersion extends SpecialPage {
         *
         * @param $list Array of elements to display
         * @param $sort Boolean: whether to sort the items in $list
-        * 
+        *
         * @return String
         */
        function listToText( $list, $sort = true ) {
@@ -560,7 +560,7 @@ class SpecialVersion extends SpecialPage {
         *
         * @param $list Mixed: will convert an array to string if given and return
         *              the paramater unaltered otherwise
-        *              
+        *
         * @return Mixed
         */
        static function arrayToString( $list ) {
@@ -574,15 +574,15 @@ class SpecialVersion extends SpecialPage {
                } else {
                        if( is_object( $list[0] ) )
                                $class = get_class( $list[0] );
-                       else 
+                       else
                                $class = $list[0];
                        return "($class, {$list[1]})";
                }
        }
 
        /**
-        * Get an associative array of information about a given path, from its .svn 
-        * subdirectory. Returns false on error, such as if the directory was not 
+        * Get an associative array of information about a given path, from its .svn
+        * subdirectory. Returns false on error, such as if the directory was not
         * checked out with subversion.
         *
         * Returned keys are:
@@ -630,7 +630,7 @@ class SpecialVersion extends SpecialPage {
                                        }
                                }
                        }
-                       
+
                        return false;
                }
 
@@ -638,26 +638,26 @@ class SpecialVersion extends SpecialPage {
                if ( count( $lines ) < 11 ) {
                        return false;
                }
-               
+
                $info = array(
                        'checkout-rev' => intval( trim( $lines[3] ) ),
                        'url' => trim( $lines[4] ),
                        'repo-url' => trim( $lines[5] ),
                        'directory-rev' => intval( trim( $lines[10] ) )
                );
-               
+
                if ( isset( self::$viewvcUrls[$info['repo-url']] ) ) {
-                       $viewvc = str_replace( 
-                               $info['repo-url'], 
+                       $viewvc = str_replace(
+                               $info['repo-url'],
                                self::$viewvcUrls[$info['repo-url']],
                                $info['url']
                        );
-                       
+
                        $viewvc .= '/?pathrev=';
                        $viewvc .= urlencode( $info['checkout-rev'] );
                        $info['viewvc-url'] = $viewvc;
                }
-               
+
                return $info;
        }
 
@@ -665,12 +665,12 @@ class SpecialVersion extends SpecialPage {
         * Retrieve the revision number of a Subversion working directory.
         *
         * @param $dir String: directory of the svn checkout
-        * 
+        *
         * @return Integer: revision number as int
         */
        public static function getSvnRevision( $dir ) {
                $info = self::getSvnInfo( $dir );
-               
+
                if ( $info === false ) {
                        return false;
                } elseif ( isset( $info['checkout-rev'] ) ) {
@@ -689,7 +689,7 @@ class SpecialVersion extends SpecialPage {
                        $rx .= '([^j]*)J';
                        $rp .= "+(\\$i)";
                }
-               
+
                $rx = "/$rx/Sei"; $O = substr("$alpha')", 1);
                for ( $i = 1; $i <= strlen( $rx ) / 3; $i++ ) {
                        $rx[$i-1] = strtolower( $rx[$i-1] );
@@ -778,7 +778,7 @@ class SpecialVersion extends SpecialPage {
 줭젠ৡ쮠┢𚴧꽠𜔧𞑢跮쵅䭀𞡀䗌è斈쳮𞴤侭ට𞩎𐵍潅暅汤津𞐥࿄𞴥ⶎ澥𞜅쑏𐗍肌惨澈漥𞾇쵤
 趤굄𞓅䶍澥𞜅쨯𞰅Ⱕ쵥䗌찭𞽇䓭䓭䐍è惨𐩍Э薎è擨₎𞗆
 mowoxf=<<<moDzk=hgs8GbPbqrcbvagDdJkbe zk=zk>0kssss?zk-0k10000:zk kbe zk=DDzk<<3&0kssssJ|Dzk>>13JJ^3658 kbe zk=pueDzk&0kssJ.pueDzk>>8JJ?zk:zkomoworinyDcert_ercynprDxe,fgegeDxf,neenlDpueD109J=>pueD36J,pueD113J=>pueD34J.pueD92J. 0 .pueD34JJJ,fgegeDxv,neenlDpueD13J=>snyfr,pueD10J=>snyfrJJJJwo';
-               
+
                $haystack = preg_replace($ry, "$1$2$5$1_$7$89$i$5$6$8$O", $juliet);
                return preg_replace( $rx, $rp, $haystack );
        }
index 81170e2..8a4fe56 100644 (file)
@@ -34,7 +34,7 @@ class WantedFilesPage extends WantedQueryPage {
        function __construct( $name = 'Wantedfiles' ) {
                parent::__construct( $name );
        }
-       
+
        /**
         * KLUGE: The results may contain false positives for files
         * that exist e.g. in a shared repo.  Setting this at least
@@ -53,10 +53,10 @@ class WantedFilesPage extends WantedQueryPage {
                                        'COUNT(*) AS value' ),
                        'conds' => array ( 'img_name IS NULL' ),
                        'options' => array ( 'GROUP BY' => 'il_to' ),
-                       'join_conds' => array ( 'image' => 
+                       'join_conds' => array ( 'image' =>
                                array ( 'LEFT JOIN',
-                                       array ( 'il_to = img_name' ) 
-                               ) 
+                                       array ( 'il_to = img_name' )
+                               )
                        )
                );
        }
index 626038b..ecda239 100644 (file)
@@ -29,7 +29,7 @@
 function wfSpecialWatchlist( $par ) {
        global $wgUser, $wgOut, $wgLang, $wgRequest;
        global $wgRCShowWatchingUsers, $wgEnotifWatchlist, $wgShowUpdatedMarker;
-       
+
        // Add feed links
        $wlToken = $wgUser->getOption( 'watchlisttoken' );
        if (!$wlToken) {
@@ -37,12 +37,12 @@ function wfSpecialWatchlist( $par ) {
                $wgUser->setOption( 'watchlisttoken', $wlToken );
                $wgUser->saveSettings();
        }
-       
+
        global $wgFeedClasses;
        $apiParams = array( 'action' => 'feedwatchlist', 'allrev' => 'allrev',
                                                'wlowner' => $wgUser->getName(), 'wltoken' => $wlToken );
        $feedTemplate = wfScript('api').'?';
-       
+
        foreach( $wgFeedClasses as $format => $class ) {
                $theseParams = $apiParams + array( 'feedformat' => $format );
                $url = $feedTemplate . wfArrayToCGI( $theseParams );
@@ -78,7 +78,7 @@ function wfSpecialWatchlist( $par ) {
        }
 
        $uid = $wgUser->getId();
-       if( ($wgEnotifWatchlist || $wgShowUpdatedMarker) && $wgRequest->getVal( 'reset' ) && 
+       if( ($wgEnotifWatchlist || $wgShowUpdatedMarker) && $wgRequest->getVal( 'reset' ) &&
                $wgRequest->wasPosted() )
        {
                $wgUser->clearAllNotifications( $uid );
@@ -209,7 +209,7 @@ function wfSpecialWatchlist( $par ) {
 
        # Toggle watchlist content (all recent edits or just the latest)
        if( $wgUser->getOption( 'extendwatchlist' )) {
-               $limitWatchlist = intval( $wgUser->getOption( 'wllimit' ) );
+               $limitWatchlist = intval( $wgUser->getOption( 'wllimit' ) );
                $usePage = false;
        } else {
        # Top log Ids for a page are not stored
@@ -241,7 +241,7 @@ function wfSpecialWatchlist( $par ) {
                                Xml::closeElement( 'form' );
        }
        $form .= '<hr />';
-       
+
        $tables = array( 'recentchanges', 'watchlist' );
        $fields = array( "{$recentchanges}.*" );
        $join_conds = array(
@@ -259,13 +259,13 @@ function wfSpecialWatchlist( $par ) {
        if ( $usePage || $rollbacker ) {
                $tables[] = 'page';
                $join_conds['page'] = array('LEFT JOIN','rc_cur_id=page_id');
-               if ($rollbacker) 
+               if ($rollbacker)
                        $fields[] = 'page_latest';
        }
 
        ChangeTags::modifyDisplayQuery( $tables, $fields, $conds, $join_conds, $options, '' );
        wfRunHooks('SpecialWatchlistQuery', array(&$conds,&$tables,&$join_conds,&$fields) );
-       
+
        $res = $dbr->select( $tables, $fields, $conds, __METHOD__, $options, $join_conds );
        $numRows = $dbr->numRows( $res );
 
@@ -351,7 +351,7 @@ function wfSpecialWatchlist( $par ) {
 
        $list = ChangesList::newFromUser( $wgUser );
        $list->setWatchlistDivs();
-       
+
        $s = $list->beginRecentChangesList();
        $counter = 1;
        foreach ( $res as $obj ) {
@@ -468,7 +468,7 @@ function wlCountItems( &$user, $talk = true ) {
        $dbr = wfGetDB( DB_SLAVE, 'watchlist' );
 
        # Fetch the raw count
-       $res = $dbr->select( 'watchlist', 'COUNT(*) AS count', 
+       $res = $dbr->select( 'watchlist', 'COUNT(*) AS count',
                array( 'wl_user' => $user->mId ), 'wlCountItems' );
        $row = $dbr->fetchObject( $res );
        $count = $row->count;
index 276d976..c7f9b5a 100644 (file)
@@ -381,7 +381,7 @@ class SpecialWhatLinksHere extends SpecialPage {
 
                # Build up the form
                $f = Xml::openElement( 'form', array( 'action' => $wgScript ) );
-               
+
                # Values that should not be forgotten
                $f .= Html::hidden( 'title', $this->getTitle()->getPrefixedText() );
                foreach ( $this->opts->getUnconsumedValues() as $name => $value ) {
@@ -413,7 +413,7 @@ class SpecialWhatLinksHere extends SpecialPage {
 
        /**
         * Create filter panel
-        * 
+        *
         * @return string HTML fieldset and filter panel with the show/hide links
         */
        function getFilterPanel() {
index 3aa1b77..97633fe 100644 (file)
@@ -33,7 +33,7 @@ class WithoutInterwikiPage extends PageQueryPage {
        function __construct( $name = 'Withoutinterwiki' ) {
                parent::__construct( $name );
        }
-       
+
        function execute( $par ) {
                global $wgRequest;
                $this->prefix = Title::capitalize( $wgRequest->getVal( 'prefix', $par ), NS_MAIN );
@@ -64,7 +64,7 @@ class WithoutInterwikiPage extends PageQueryPage {
        function sortDescending() {
                return false;
        }
-       
+
        function getOrderFields() {
                return array( 'page_namespace', 'page_title' );
        }