Misc EOL w/s and spaces-instead-of-tabs fixes. One day I'll get around to nagging...
authorMark A. Hershberger <mah@users.mediawiki.org>
Wed, 25 May 2011 15:39:47 +0000 (15:39 +0000)
committerMark A. Hershberger <mah@users.mediawiki.org>
Wed, 25 May 2011 15:39:47 +0000 (15:39 +0000)
14 files changed:
includes/ChangesList.php
includes/DefaultSettings.php
includes/HTMLForm.php
includes/Linker.php
includes/Revision.php
includes/SpecialPage.php
includes/cache/MessageCache.php
includes/filerepo/File.php
includes/parser/Parser.php
includes/revisiondelete/RevisionDelete.php
includes/revisiondelete/RevisionDeleteAbstracts.php
languages/Language.php
languages/messages/MessagesDe.php
languages/messages/MessagesEn.php

index ba70155..42d744f 100644 (file)
@@ -41,7 +41,7 @@ class ChangesList {
        protected $watchlist = false;
 
        protected $message;
-       
+
        /**
        * Changeslist contructor
        * @param $skin Skin
@@ -70,7 +70,7 @@ class ChangesList {
                        return $list;
                }
        }
-       
+
        /**
         * Sets the list to use a <li class="watchlist-(namespace)-(page)"> tag
         * @param $value Boolean
@@ -120,11 +120,11 @@ class ChangesList {
        public static function flag( $flag ) {
                static $messages = null;
                if ( is_null( $messages ) ) {
-                       $messages = array( 
+                       $messages = array(
                                'newpage' => array( 'newpageletter', 'recentchanges-label-newpage' ),
                                'minoredit' => array( 'minoreditletter', 'recentchanges-label-minor' ),
                                'botedit' => array( 'boteditletter', 'recentchanges-label-bot' ),
-                               'unpatrolled' => array( 'unpatrolledletter', 'recentchanges-label-unpatrolled' ), 
+                               'unpatrolled' => array( 'unpatrolledletter', 'recentchanges-label-unpatrolled' ),
                        );
                        foreach( $messages as &$value ) {
                                $value[0] = wfMsgExt( $value[0], 'escapenoentities' );
@@ -158,7 +158,7 @@ class ChangesList {
                $this->rclistOpen = false;
                return '';
        }
-       
+
        /**
         * Show formatted char difference
         * @param $old Integer: bytes
@@ -174,29 +174,29 @@ class ChangesList {
                if ( !isset($fastCharDiff[$code]) ) {
                        $fastCharDiff[$code] = $wgMiserMode || wfMsgNoTrans( 'rc-change-size' ) === '$1';
                }
-                       
+
                $formatedSize = $wgLang->formatNum($szdiff);
 
                if ( !$fastCharDiff[$code] ) {
                        $formatedSize = wfMsgExt( 'rc-change-size', array( 'parsemag', 'escape' ), $formatedSize );
                }
-                       
+
                if( abs( $szdiff ) > abs( $wgRCChangedSizeThreshold ) ) {
                        $tag = 'strong';
                } else {
-                   $tag = 'span';
+                       $tag = 'span';
                }
                if( $szdiff === 0 ) {
                        return "<$tag class='mw-plusminus-null'>($formatedSize)</$tag>";
                } elseif( $szdiff > 0 ) {
                        return "<$tag class='mw-plusminus-pos'>(+$formatedSize)</$tag>";
-           } else {
+               } else {
                        return "<$tag class='mw-plusminus-neg'>($formatedSize)</$tag>";
                }
        }
 
        /**
-        * Returns text for the end of RC
+        * Returns text for the end of RC
         * @return String
         */
        public function endRecentChangesList() {
@@ -370,7 +370,7 @@ class ChangesList {
         */
        public function insertTimestamp( &$s, $rc ) {
                global $wgLang;
-               $s .= $this->message['semicolon-separator'] . 
+               $s .= $this->message['semicolon-separator'] .
                        $wgLang->time( $rc->mAttribs['rc_timestamp'], true, true ) . ' . . ';
        }
 
@@ -474,7 +474,7 @@ class ChangesList {
                        return '<span class="mw-rc-unwatched">' . $link . '</span>';
                }
        }
-       
+
        /** Inserts a rollback link
         *
         * @param $s
@@ -509,7 +509,7 @@ class ChangesList {
        public function insertTags( &$s, &$rc, &$classes ) {
                if ( empty($rc->mAttribs['ts_tags']) )
                        return;
-                       
+
                list($tagSummary, $newClasses) = ChangeTags::formatSummaryRow( $rc->mAttribs['ts_tags'], 'changeslist' );
                $classes = array_merge( $classes, $newClasses );
                $s .= ' ' . $tagSummary;
@@ -568,11 +568,11 @@ class OldChangesList extends ChangesList {
                } else {
                        $this->insertDiffHist( $s, $rc, $unpatrolled );
                        # M, N, b and ! (minor, new, bot and unpatrolled)
-                       $s .= $this->recentChangesFlags( 
+                       $s .= $this->recentChangesFlags(
                                array(
                                        'newpage' => $rc->mAttribs['rc_new'],
                                        'minor' => $rc->mAttribs['rc_minor'],
-                                       'unpatrolled' => $unpatrolled, 
+                                       'unpatrolled' => $unpatrolled,
                                        'bot' => $rc->mAttribs['rc_bot']
                                ),
                                ''
@@ -600,17 +600,17 @@ class OldChangesList extends ChangesList {
                $this->insertRollback( $s, $rc );
                # For subclasses
                $this->insertExtra( $s, $rc, $classes );
-               
+
                # How many users watch this page
                if( $rc->numberofWatchingusers > 0 ) {
-                       $s .= ' ' . wfMsgExt( 'number_of_watching_users_RCview', 
+                       $s .= ' ' . wfMsgExt( 'number_of_watching_users_RCview',
                                array( 'parsemag', 'escape' ), $wgLang->formatNum( $rc->numberofWatchingusers ) );
                }
-               
+
                if( $this->watchlist ) {
                        $classes[] = Sanitizer::escapeClass( 'watchlist-'.$rc->mAttribs['rc_namespace'].'-'.$rc->mAttribs['rc_title'] );
                }
-               
+
                wfRunHooks( 'OldChangesListRecentChangesLine', array(&$this, &$s, $rc) );
 
                wfProfileOut( __METHOD__ );
@@ -647,7 +647,7 @@ class EnhancedChangesList extends ChangesList {
         */
        public function recentChangesLine( &$baseRC, $watched = false ) {
                global $wgLang, $wgUser;
-               
+
                wfProfileIn( __METHOD__ );
 
                # Create a specialised object
@@ -668,7 +668,7 @@ class EnhancedChangesList extends ChangesList {
 
                # Should patrol-related stuff be shown?
                if( $wgUser->useRCPatrol() ) {
-                       $rc->unpatrolled = !$rc->mAttribs['rc_patrolled'];
+                       $rc->unpatrolled = !$rc->mAttribs['rc_patrolled'];
                } else {
                        $rc->unpatrolled = false;
                }
@@ -691,7 +691,7 @@ class EnhancedChangesList extends ChangesList {
                } else if( $type == RC_LOG ) {
                        if( $logType ) {
                                $logtitle = SpecialPage::getTitleFor( 'Log', $logType );
-                               $clink = '(' . $this->skin->linkKnown( $logtitle, 
+                               $clink = '(' . $this->skin->linkKnown( $logtitle,
                                        LogPage::logName( $logType ) ) . ')';
                        } else {
                                $clink = $this->skin->link( $rc->getTitle() );
@@ -874,7 +874,7 @@ class EnhancedChangesList extends ChangesList {
                        array_push( $users, $text );
                }
 
-               $users = ' <span class="changedby">[' . 
+               $users = ' <span class="changedby">[' .
                        implode( $this->message['semicolon-separator'], $users ) . ']</span>';
 
                # Title for <a> tags
@@ -893,7 +893,7 @@ class EnhancedChangesList extends ChangesList {
                $r .= '<td class="mw-enhanced-rc">' . $this->recentChangesFlags( array(
                        'newpage' => $isnew,
                        'minor' => false,
-                       'unpatrolled' => $unpatrolled, 
+                       'unpatrolled' => $unpatrolled,
                        'bot' => $bot ,
                ) );
 
@@ -930,7 +930,7 @@ class EnhancedChangesList extends ChangesList {
                                $params = $queryParams;
                                $params['diff'] = $currentRevision;
                                $params['oldid'] = $oldid;
-                               
+
                                $r .= $this->skin->link(
                                        $block[0]->getTitle(),
                                        $nchanges[$n],
@@ -997,7 +997,7 @@ class EnhancedChangesList extends ChangesList {
                        $r .= $this->recentChangesFlags( array(
                                'newpage' => $rcObj->mAttribs['rc_new'],
                                'minor' => $rcObj->mAttribs['rc_minor'],
-                               'unpatrolled' => $rcObj->unpatrolled, 
+                               'unpatrolled' => $rcObj->unpatrolled,
                                'bot' => $rcObj->mAttribs['rc_bot'],
                        ) );
                        $r .= '&#160;</td><td class="mw-enhanced-rc-nested"><span class="mw-enhanced-rc-time">';
@@ -1142,7 +1142,7 @@ class EnhancedChangesList extends ChangesList {
                        $r .= $this->recentChangesFlags( array(
                                'newpage' => $type == RC_NEW,
                                'mino' => $rcObj->mAttribs['rc_minor'],
-                               'unpatrolled' => $rcObj->unpatrolled, 
+                               'unpatrolled' => $rcObj->unpatrolled,
                                'bot' => $rcObj->mAttribs['rc_bot'],
                        ) );
                }
@@ -1232,7 +1232,7 @@ class EnhancedChangesList extends ChangesList {
        }
 
        /**
-        * Returns text for the end of RC
+        * Returns text for the end of RC
         * If enhanced RC is in use, returns pretty much all the text
         */
        public function endRecentChangesList() {
index 3483bfc..a6868b0 100644 (file)
@@ -58,7 +58,7 @@ if( isset( $_SERVER['SERVER_NAME'] )
        # additionially, for requests made directly to an IPv6 address we have
        # to make sure the server enclose it in either [] or nothing at all
        && (strpos($_SERVER['SERVER_NAME'], '[')
-           xor strpos( $_SERVER['SERVER_NAME'], ']'))
+               xor strpos( $_SERVER['SERVER_NAME'], ']'))
        ) {
        $serverName = $_SERVER['SERVER_NAME'];
 } elseif( isset( $_SERVER['HOSTNAME'] ) ) {
@@ -552,8 +552,8 @@ $wgMimeTypeBlacklist = array(
 
 /**
  * Allow Java archive uploads.
- * This is not recommended for public wikis since a maliciously-constructed 
- * applet running on the same domain as the wiki can steal the user's cookies. 
+ * This is not recommended for public wikis since a maliciously-constructed
+ * applet running on the same domain as the wiki can steal the user's cookies.
  */
 $wgAllowJavaUploads = false;
 
@@ -676,7 +676,7 @@ $wgSVGConverterPath = '';
 $wgSVGMaxSize = 2048;
 /** Don't read SVG metadata beyond this point.
  * Default is 1024*256 bytes */
-$wgSVGMetadataCutoff = 262144; 
+$wgSVGMetadataCutoff = 262144;
 
 /**
  * MediaWiki will reject HTMLesque tags in uploaded files due to idiotic browsers which can't
@@ -1483,7 +1483,7 @@ $wgCacheDirectory = false;
  *   - CACHE_DBA:        Use PHP's DBA extension to store in a DBM-style
  *                       database. This is slow, and is not recommended for
  *                       anything other than debugging.
- *   - (other):          A string may be used which identifies a cache 
+ *   - (other):          A string may be used which identifies a cache
  *                       configuration in $wgObjectCaches.
  *
  * @see $wgMessageCacheType, $wgParserCacheType
@@ -1509,13 +1509,13 @@ $wgParserCacheType = CACHE_ANYTHING;
 /**
  * Advanced object cache configuration.
  *
- * Use this to define the class names and constructor parameters which are used 
- * for the various cache types. Custom cache types may be defined here and 
+ * Use this to define the class names and constructor parameters which are used
+ * for the various cache types. Custom cache types may be defined here and
  * referenced from $wgMainCacheType, $wgMessageCacheType or $wgParserCacheType.
  *
- * The format is an associative array where the key is a cache identifier, and 
+ * The format is an associative array where the key is a cache identifier, and
  * the value is an associative array of parameters. The "class" parameter is the
- * class name which will be used. Alternatively, a "factory" parameter may be 
+ * class name which will be used. Alternatively, a "factory" parameter may be
  * given, giving a callable function which will generate a suitable cache object.
  *
  * The other parameters are dependent on the class used.
@@ -3956,7 +3956,7 @@ $wgDebugFunctionEntry = 0;
 $wgStatsMethod = 'cache';
 
 /**
- * When $wgStatsMethod is 'udp', setting this to a string allows statistics to 
+ * When $wgStatsMethod is 'udp', setting this to a string allows statistics to
  * be aggregated over more than one wiki. The string will be used in place of
  * the DB name in outgoing UDP packets. If this is set to false, the DB name
  * will be used.
@@ -4639,15 +4639,15 @@ $wgJobClasses = array(
 );
 
 /**
- * Extensions of "thumbnails" that are very expensive to regenerate and should be 
- * excluded from normal action=purge thumbnail removal. 
+ * Extensions of "thumbnails" that are very expensive to regenerate and should be
+ * excluded from normal action=purge thumbnail removal.
  */
 $wgExcludeFromThumbnailPurge = array();
 
 /**
 
  * Jobs that must be explicitly requested, i.e. aren't run by job runners unless special flags are set.
- * 
+ *
  * These can be:
  * - Very long-running jobs.
  * - Jobs that you would never want to run as part of a page rendering request.
index ea6fe05..ec038c9 100644 (file)
@@ -318,9 +318,9 @@ class HTMLForm {
         * Add header text, inside the form.
         * @param $msg String complete text of message to display
         */
-       function addHeaderText( $msg, $section = null ) { 
+       function addHeaderText( $msg, $section = null ) {
                if ( is_null( $section ) ) {
-                       $this->mHeader .= $msg; 
+                       $this->mHeader .= $msg;
                } else {
                        if ( !isset( $this->mSectionHeaders[$section] ) ) {
                                $this->mSectionHeaders[$section] = '';
@@ -333,14 +333,14 @@ class HTMLForm {
         * Add footer text, inside the form.
         * @param $msg String complete text of message to display
         */
-       function addFooterText( $msg, $section = null ) { 
+       function addFooterText( $msg, $section = null ) {
                if ( is_null( $section ) ) {
-                       $this->mFooter .= $msg; 
+                       $this->mFooter .= $msg;
                } else {
                        if ( !isset( $this->mSectionFooters[$section] ) ) {
                                $this->mSectionFooters[$section] = '';
                        }
-                       $this->mSectionFooters[$section] .= $msg;                       
+                       $this->mSectionFooters[$section] .= $msg;
                }
        }
 
@@ -693,11 +693,11 @@ class HTMLForm {
                                $legend = $this->getLegend( $key );
                                if ( isset( $this->mSectionHeaders[$key] ) ) {
                                        $section = $this->mSectionHeaders[$key] . $section;
-                               } 
+                               }
                                if ( isset( $this->mSectionFooters[$key] ) ) {
                                        $section .= $this->mSectionFooters[$key];
                                }
-                               $subsectionHtml .= Xml::fieldset( $legend, $section ) . "\n";                                   
+                               $subsectionHtml .= Xml::fieldset( $legend, $section ) . "\n";
                        }
                }
 
@@ -1886,8 +1886,8 @@ class HTMLEditTools extends HTMLFormField {
                        }
                }
                $msg->inContentLanguage();
-               
-               
+
+
                return '<tr><td></td><td class="mw-input">'
                        . '<div class="mw-editTools">'
                        . $msg->parseAsBlock()
index 8dac33e..7d30406 100644 (file)
@@ -879,7 +879,7 @@ class Linker {
                        $class .= " {$attribs['class']}";
                }
                $attribs['class'] = $class;
-               
+
                if ( $escape ) {
                        $text = htmlspecialchars( $text );
                }
@@ -1329,7 +1329,7 @@ class Linker {
                        $formatted = self::formatComment( $comment, $title, $local );
                        if ( $embraced ) {
                                $formatted = wfMessage( 'parentheses' )->rawParams( $formatted )->escaped();
-                       } 
+                       }
                        return Html::rawElement( 'span', array( 'class' => 'comment' ), $formatted );
                }
        }
@@ -1534,12 +1534,12 @@ class Linker {
                        $query['bot'] = '1';
                        $query['hidediff'] = '1'; // bug 15999
                }
-               return self::link( 
-                       $title, 
+               return self::link(
+                       $title,
                        wfMsgHtml( 'rollbacklink' ),
                        array( 'title' => wfMsg( 'tooltip-rollback' ) ),
-                       $query, 
-                       array( 'known', 'noclasses' ) 
+                       $query,
+                       array( 'known', 'noclasses' )
                );
        }
 
@@ -1947,7 +1947,7 @@ class Linker {
 }
 
 class DummyLinker {
-       
+
        /**
         * Use PHP's magic __call handler to transform instance calls to a dummy instance
         * into static calls to the new Linker for backwards compatibility.
index e72c7c1..61a837e 100644 (file)
@@ -25,7 +25,7 @@ class Revision {
        public static function newFromId( $id ) {
                return Revision::newFromConds(
                        array( 'page_id=rev_page',
-                              'rev_id' => intval( $id ) ) );
+                                  'rev_id' => intval( $id ) ) );
        }
 
        /**
@@ -38,8 +38,8 @@ class Revision {
         * @return Revision or null
         */
        public static function newFromTitle( $title, $id = 0 ) {
-               $conds = array( 
-                       'page_namespace' => $title->getNamespace(), 
+               $conds = array(
+                       'page_namespace' => $title->getNamespace(),
                        'page_title' => $title->getDBkey()
                );
                if ( $id ) {
@@ -100,7 +100,7 @@ class Revision {
        public static function loadFromId( $db, $id ) {
                return Revision::loadFromConds( $db,
                        array( 'page_id=rev_page',
-                              'rev_id' => intval( $id ) ) );
+                                  'rev_id' => intval( $id ) ) );
        }
 
        /**
@@ -142,9 +142,9 @@ class Revision {
                return Revision::loadFromConds(
                        $db,
                        array( "rev_id=$matchId",
-                              'page_id=rev_page',
-                              'page_namespace' => $title->getNamespace(),
-                              'page_title'     => $title->getDBkey() ) );
+                                  'page_id=rev_page',
+                                  'page_namespace' => $title->getNamespace(),
+                                  'page_title'     => $title->getDBkey() ) );
        }
 
        /**
@@ -161,9 +161,9 @@ class Revision {
                return Revision::loadFromConds(
                        $db,
                        array( 'rev_timestamp'  => $db->timestamp( $timestamp ),
-                              'page_id=rev_page',
-                              'page_namespace' => $title->getNamespace(),
-                              'page_title'     => $title->getDBkey() ) );
+                                  'page_id=rev_page',
+                                  'page_namespace' => $title->getNamespace(),
+                                  'page_title'     => $title->getDBkey() ) );
        }
 
        /**
@@ -216,9 +216,9 @@ class Revision {
                return Revision::fetchFromConds(
                        wfGetDB( DB_SLAVE ),
                        array( 'rev_id=page_latest',
-                              'page_namespace' => $title->getNamespace(),
-                              'page_title'     => $title->getDBkey(),
-                              'page_id=rev_page' ) );
+                                  'page_namespace' => $title->getNamespace(),
+                                  'page_title'     => $title->getDBkey(),
+                                  'page_id=rev_page' ) );
        }
 
        /**
@@ -264,9 +264,9 @@ class Revision {
                        'rev_parent_id'
                );
        }
-       
+
        /**
-        * Return the list of text fields that should be selected to read the 
+        * Return the list of text fields that should be selected to read the
         * revision text
         */
        static function selectTextFields() {
@@ -412,11 +412,11 @@ class Revision {
                        array( 'page', 'revision' ),
                        array( 'page_namespace', 'page_title' ),
                        array( 'page_id=rev_page',
-                              'rev_id' => $this->mId ),
+                                  'rev_id' => $this->mId ),
                        'Revision::getTitle' );
                if( $row ) {
                        $this->mTitle = Title::makeTitle( $row->page_namespace,
-                                                         $row->page_title );
+                                                                                         $row->page_title );
                }
                return $this->mTitle;
        }
@@ -441,7 +441,7 @@ class Revision {
 
        /**
         * Fetch revision's user id if it's available to the specified audience.
-        * If the specified audience does not have access to it, zero will be 
+        * If the specified audience does not have access to it, zero will be
         * returned.
         *
         * @param $audience Integer: one of:
@@ -473,7 +473,7 @@ class Revision {
 
        /**
         * Fetch revision's username if it's available to the specified audience.
-        * If the specified audience does not have access to the username, an 
+        * If the specified audience does not have access to the username, an
         * empty string will be returned.
         *
         * @param $audience Integer: one of:
@@ -504,7 +504,7 @@ class Revision {
 
        /**
         * Fetch revision comment if it's available to the specified audience.
-        * If the specified audience does not have access to the comment, an 
+        * If the specified audience does not have access to the comment, an
         * empty string will be returned.
         *
         * @param $audience Integer: one of:
@@ -539,7 +539,7 @@ class Revision {
        public function isMinor() {
                return (bool)$this->mMinorEdit;
        }
-       
+
        /**
         * @return Integer rcid of the unpatrolled row, zero if there isn't one
         */
@@ -579,7 +579,7 @@ class Revision {
 
        /**
         * Fetch revision text if it's available to the specified audience.
-        * If the specified audience does not have the ability to view this 
+        * If the specified audience does not have the ability to view this
         * revision, an empty string will be returned.
         *
         * @param $audience Integer: one of:
@@ -753,8 +753,8 @@ class Revision {
                        }
 
                        global $wgLegacyEncoding;
-                       if( $text !== false && $wgLegacyEncoding 
-                               && !in_array( 'utf-8', $flags ) && !in_array( 'utf8', $flags ) ) 
+                       if( $text !== false && $wgLegacyEncoding
+                               && !in_array( 'utf-8', $flags ) && !in_array( 'utf8', $flags ) )
                        {
                                # Old revisions kept around in a legacy encoding?
                                # Upconvert on demand.
index 6bc7de1..2c7f369 100644 (file)
@@ -572,10 +572,10 @@ class SpecialPage {
        function getTitle( $subpage = false ) {
                return self::getTitleFor( $this->mName, $subpage );
        }
-       
+
        /**
         * Sets the context this SpecialPage is executed in
-        * 
+        *
         * @param $context RequestContext
         * @since 1.18
         */
@@ -585,7 +585,7 @@ class SpecialPage {
 
        /**
         * Gets the context this SpecialPage is executed in
-        * 
+        *
         * @return RequestContext
         * @since 1.18
         */
@@ -651,7 +651,7 @@ class SpecialPage {
        /**
         * Wrapper around wfMessage that sets the current context. Currently this
         * is only the title.
-        * 
+        *
         * @see wfMessage
         */
        public function msg( /* $args */ ) {
@@ -832,7 +832,7 @@ abstract class RedirectSpecialPage extends UnlistedSpecialPage {
 
        // Query parameteres added by redirects
        protected $mAddedRedirectParams = array();
-       
+
        public function execute( $par ){
                $redirect = $this->getRedirect( $par );
                $query = $this->getRedirectQuery();
index 28add72..3b6ba71 100644 (file)
@@ -197,7 +197,7 @@ class MessageCache {
 
                $filename = "$wgCacheDirectory/messages-" . wfWikiID() . "-$code";
                $tempFilename = $filename . '.tmp';
-               wfMkdirParents( $wgCacheDirectory ); // might fail
+               wfMkdirParents( $wgCacheDirectory ); // might fail
 
                wfSuppressWarnings();
                $file = fopen( $tempFilename, 'w' );
index 7fafc62..0b5e374 100644 (file)
@@ -176,7 +176,7 @@ abstract class File {
         * @return Title
         */
        public function getTitle() { return $this->title; }
-       
+
        /**
         * Return the title used to find this file
         */
@@ -288,8 +288,8 @@ abstract class File {
        }
 
        /**
-         *  Return true if the file is vectorized
-         */
+        *  Return true if the file is vectorized
+        */
        public function isVectorized() {
                $handler = $this->getHandler();
                if ( $handler ) {
@@ -318,7 +318,7 @@ abstract class File {
                $handler = $this->getHandler();
                if ( !is_array( $metadata ) ) {
                        //just to make the return type consistant
-                       $metadata = unserialize( $metadata ); 
+                       $metadata = unserialize( $metadata );
                }
                if ( $handler ) {
                        return $handler->convertMetadataVersion( $metadata, $version );
@@ -517,7 +517,7 @@ abstract class File {
        function thumbName( $params ) {
                return $this->generateThumbName( $this->getName(), $params );
        }
-       
+
        /**
         * Generate a thumbnail file name from a name and specified parameters
         *
@@ -612,8 +612,8 @@ abstract class File {
                        if ( file_exists( $thumbPath )) {
                                $thumbTime = filemtime( $thumbPath );
                                if ( $thumbTime !== FALSE &&
-                                    gmdate( 'YmdHis', $thumbTime ) >= $wgThumbnailEpoch ) { 
-       
+                                       gmdate( 'YmdHis', $thumbTime ) >= $wgThumbnailEpoch ) {
+
                                        $thumb = $this->handler->getTransform( $this, $thumbPath, $thumbUrl, $params );
                                        break;
                                }
@@ -629,9 +629,9 @@ abstract class File {
                                        $thumb = $this->handler->getTransform( $this, $thumbPath, $thumbUrl, $params );
                                }
                        }
-                       
-                       // Purge. Useful in the event of Core -> Squid connection failure or squid 
-                       // purge collisions from elsewhere during failure. Don't keep triggering for 
+
+                       // Purge. Useful in the event of Core -> Squid connection failure or squid
+                       // purge collisions from elsewhere during failure. Don't keep triggering for
                        // "thumbs" which have the main image URL though (bug 13776)
                        if ( $wgUseSquid && ( !$thumb || $thumb->isError() || $thumb->getUrl() != $this->getURL()) ) {
                                SquidUpdate::purge( array( $thumbUrl ) );
@@ -953,11 +953,11 @@ abstract class File {
        function isDeleted( $field ) {
                return false;
        }
-       
+
        /**
         * Return the deletion bitfield
         * STUB
-        */     
+        */
        function getVisibility() {
                return 0;
        }
@@ -1025,8 +1025,8 @@ abstract class File {
        }
 
        /**
-        * Returns 'true' if this file is a type which supports multiple pages, 
-        * e.g. DJVU or PDF. Note that this may be true even if the file in 
+        * Returns 'true' if this file is a type which supports multiple pages,
+        * e.g. DJVU or PDF. Note that this may be true even if the file in
         * question only has a single page.
         *
         * @return Bool
@@ -1096,7 +1096,7 @@ abstract class File {
                if ( $renderUrl ) {
                        if ( $this->repo->descriptionCacheExpiry > 0 ) {
                                wfDebug("Attempting to get the description from cache...");
-                               $key = $this->repo->getLocalCacheKey( 'RemoteFileDescription', 'url', $wgLang->getCode(), 
+                               $key = $this->repo->getLocalCacheKey( 'RemoteFileDescription', 'url', $wgLang->getCode(),
                                                                        $this->getName() );
                                $obj = $wgMemc->get($key);
                                if ($obj) {
@@ -1153,7 +1153,7 @@ abstract class File {
                }
                $ext = $this->getExtension();
                $dotExt = $ext === '' ? '' : ".$ext";
-               return $hash . $dotExt;                         
+               return $hash . $dotExt;
        }
 
        /**
@@ -1288,7 +1288,7 @@ abstract class File {
        function getRedirected() {
                return $this->redirected;
        }
-       
+
        function getRedirectedTitle() {
                if ( $this->redirected ) {
                        if ( !$this->redirectTitle ) {
index 5acf40c..d0f97e6 100644 (file)
@@ -783,7 +783,7 @@ class Parser {
 
                        # empty line, go to next line,
                        # but only append \n if outside of table
-                       if ( $line === '') { 
+                       if ( $line === '') {
                                $output .= $outLine . "\n";
                                continue;
                        }
@@ -870,7 +870,7 @@ class Parser {
                                // a table caption, but only proceed if there isn't one already
                                if ( !isset ( $table['caption'] ) ) {
                                        $line = substr ( $line , 2 );
-                                       
+
                                        $c = $this->getCellAttr( $line , 'caption' );
                                        $table['caption'] = array();
                                        $table['caption']['content'] = $c[0];
@@ -944,7 +944,7 @@ class Parser {
 
        /**
         * Helper function for doTableStuff() separating the contents of cells from
-        * attributes. Particularly useful as there's a possible bug and this action 
+        * attributes. Particularly useful as there's a possible bug and this action
         * is repeated twice.
         *
         * @private
@@ -3511,7 +3511,7 @@ class Parser {
                # Register the file as a dependency...
                $this->mOutput->addImage( $title->getDBkey(), $time, $sha1 );
                if ( $file && !$title->equals( $file->getTitle() ) ) {
-                       # Update fetched file title 
+                       # Update fetched file title
                        $title = $file->getTitle();
                }
                return array( $file, $title );
@@ -4729,14 +4729,14 @@ class Parser {
                                # Bogus title. Ignore these so we don't bomb out later.
                                continue;
                        }
-                       
+
                        $label = '';
                        $alt = '';
                        if ( isset( $matches[3] ) ) {
                                // look for an |alt= definition while trying not to break existing
                                // captions with multiple pipes (|) in it, until a more sensible grammar
                                // is defined for images in galleries
-                               
+
                                $matches[3] = $this->recursiveTagParse( trim( $matches[3] ) );
                                $altmatches = StringUtils::explode('|', $matches[3]);
                                $magicWordAlt = MagicWord::get( 'img_alt' );
index 1362bb4..5b6e63e 100644 (file)
@@ -78,7 +78,7 @@ class RevDel_RevisionList extends RevDel_List {
        public function getCurrent() {
                if ( is_null( $this->currentRevId ) ) {
                        $dbw = wfGetDB( DB_MASTER );
-                       $this->currentRevId = $dbw->selectField( 
+                       $this->currentRevId = $dbw->selectField(
                                'page', 'page_latest', $this->title->pageCond(), __METHOD__ );
                }
                return $this->currentRevId;
@@ -115,7 +115,7 @@ class RevDel_RevisionItem extends RevDel_Item {
        public function canView() {
                return $this->revision->userCan( Revision::DELETED_RESTRICTED );
        }
-       
+
        public function canViewContent() {
                return $this->revision->userCan( Revision::DELETED_TEXT );
        }
@@ -129,8 +129,8 @@ class RevDel_RevisionItem extends RevDel_Item {
                // Update revision table
                $dbw->update( 'revision',
                        array( 'rev_deleted' => $bits ),
-                       array( 
-                               'rev_id' => $this->revision->getId(), 
+                       array(
+                               'rev_id' => $this->revision->getId(),
                                'rev_page' => $this->revision->getPage(),
                                'rev_deleted' => $this->getBits()
                        ),
@@ -142,7 +142,7 @@ class RevDel_RevisionItem extends RevDel_Item {
                }
                // Update recentchanges table
                $dbw->update( 'recentchanges',
-                       array( 
+                       array(
                                'rc_deleted' => $bits,
                                'rc_patrolled' => 1
                        ),
@@ -161,7 +161,7 @@ class RevDel_RevisionItem extends RevDel_Item {
        }
 
        public function isHideCurrentOp( $newBits ) {
-               return ( $newBits & Revision::DELETED_TEXT ) 
+               return ( $newBits & Revision::DELETED_TEXT )
                        && $this->list->getCurrent() == $this->getId();
        }
 
@@ -177,7 +177,7 @@ class RevDel_RevisionItem extends RevDel_Item {
                }
                return $this->special->skin->link(
                        $this->list->title,
-                       $date, 
+                       $date,
                        array(),
                        array(
                                'oldid' => $this->revision->getId(),
@@ -194,9 +194,9 @@ class RevDel_RevisionItem extends RevDel_Item {
                if ( $this->isDeleted() && !$this->canViewContent() ) {
                        return wfMsgHtml('diff');
                } else {
-                       return 
-                               $this->special->skin->link( 
-                                       $this->list->title, 
+                       return
+                               $this->special->skin->link(
+                                       $this->list->title,
                                        wfMsgHtml('diff'),
                                        array(),
                                        array(
@@ -281,7 +281,7 @@ class RevDel_ArchiveItem extends RevDel_RevisionItem {
                # Convert DB timestamp to MW timestamp
                return $this->revision->getTimestamp();
        }
-       
+
        public function setBits( $bits ) {
                $dbw = wfGetDB( DB_MASTER );
                $dbw->update( 'archive',
@@ -315,8 +315,8 @@ class RevDel_ArchiveItem extends RevDel_RevisionItem {
                if ( $this->isDeleted() && !$this->canViewContent() ) {
                        return wfMsgHtml( 'diff' );
                }
-               $undelete = SpecialPage::getTitleFor( 'Undelete' );             
-               return $this->special->skin->link( $undelete, wfMsgHtml('diff'), array(), 
+               $undelete = SpecialPage::getTitleFor( 'Undelete' );
+               return $this->special->skin->link( $undelete, wfMsgHtml('diff'), array(),
                        array(
                                'target' => $this->list->title->getPrefixedText(),
                                'diff' => 'prev',
@@ -452,7 +452,7 @@ class RevDel_FileItem extends RevDel_Item {
        public function canView() {
                return $this->file->userCan( File::DELETED_RESTRICTED );
        }
-       
+
        public function canViewContent() {
                return $this->file->userCan( File::DELETED_FILE );
        }
@@ -484,12 +484,12 @@ class RevDel_FileItem extends RevDel_Item {
                        $dstRel = $this->file->repo->getDeletedHashPath( $key ) . $key;
                        $this->list->deleteBatch[] = array( $this->file->getRel(), $dstRel );
                }
-               
+
                # Do the database operations
                $dbw = wfGetDB( DB_MASTER );
                $dbw->update( 'oldimage',
                        array( 'oi_deleted' => $bits ),
-                       array( 
+                       array(
                                'oi_name' => $this->row->oi_name,
                                'oi_timestamp' => $this->row->oi_timestamp,
                                'oi_deleted' => $this->getBits()
@@ -504,20 +504,20 @@ class RevDel_FileItem extends RevDel_Item {
        }
 
        /**
-        * Get the link to the file. 
+        * Get the link to the file.
         * Overridden by RevDel_ArchivedFileItem.
         */
        protected function getLink() {
                global $wgLang, $wgUser;
-               $date = $wgLang->timeanddate( $this->file->getTimestamp(), true  );             
+               $date = $wgLang->timeanddate( $this->file->getTimestamp(), true  );
                if ( $this->isDeleted() ) {
                        # Hidden files...
                        if ( !$this->canViewContent() ) {
                                $link = $date;
                        } else {
-                               $link = $this->special->skin->link( 
-                                       $this->special->getTitle(), 
-                                       $date, array(), 
+                               $link = $this->special->skin->link(
+                                       $this->special->getTitle(),
+                                       $date, array(),
                                        array(
                                                'target' => $this->list->title->getPrefixedText(),
                                                'file'   => $this->file->getArchiveName(),
@@ -568,14 +568,14 @@ class RevDel_FileItem extends RevDel_Item {
 
        public function getHTML() {
                global $wgLang;
-               $data = 
+               $data =
                        wfMsg(
-                               'widthheight', 
+                               'widthheight',
                                $wgLang->formatNum( $this->file->getWidth() ),
-                               $wgLang->formatNum( $this->file->getHeight() ) 
+                               $wgLang->formatNum( $this->file->getHeight() )
                        ) .
-                       ' (' . 
-                       wfMsgExt( 'nbytes', 'parsemag', $wgLang->formatNum( $this->file->getSize() ) ) . 
+                       ' (' .
+                       wfMsgExt( 'nbytes', 'parsemag', $wgLang->formatNum( $this->file->getSize() ) ) .
                        ')';
 
                return '<li>' . $this->getLink() . ' ' . $this->getUserTools() . ' ' .
@@ -715,7 +715,7 @@ class RevDel_LogItem extends RevDel_Item {
        public function canView() {
                return LogEventsList::userCan( $this->row, Revision::DELETED_RESTRICTED );
        }
-       
+
        public function canViewContent() {
                return true; // none
        }
@@ -727,9 +727,9 @@ class RevDel_LogItem extends RevDel_Item {
        public function setBits( $bits ) {
                $dbw = wfGetDB( DB_MASTER );
                $dbw->update( 'recentchanges',
-                       array( 
-                               'rc_deleted' => $bits, 
-                               'rc_patrolled' => 1 
+                       array(
+                               'rc_deleted' => $bits,
+                               'rc_patrolled' => 1
                        ),
                        array(
                                'rc_logid' => $this->row->log_id,
index 1240f6e..4436a87 100644 (file)
@@ -66,7 +66,7 @@ abstract class RevDel_List {
                return $this->authorNameField;
        }
        /**
-        * Set the visibility for the revisions in this list. Logging and 
+        * Set the visibility for the revisions in this list. Logging and
         * transactions are done here.
         *
         * @param $params Associative array of parameters. Members are:
@@ -127,7 +127,7 @@ abstract class RevDel_List {
                                $status->warning( 'revdelete-only-restricted', $item->formatDate(), $item->formatTime() );
                                $status->failCount++;
                                continue;
-                       } 
+                       }
 
                        // Update the revision
                        $ok = $item->setBits( $newBits );
@@ -158,7 +158,7 @@ abstract class RevDel_List {
                        return $status;
                }
 
-               // Save success count 
+               // Save success count
                $successCount = $status->successCount;
 
                // Move files, if there are any
@@ -171,9 +171,9 @@ abstract class RevDel_List {
 
                // Log it
                $this->updateLog( array(
-                       'title' => $this->title, 
-                       'count' => $successCount, 
-                       'newBits' => $newBits, 
+                       'title' => $this->title,
+                       'count' => $successCount,
+                       'newBits' => $newBits,
                        'oldBits' => $oldBits,
                        'comment' => $comment,
                        'ids' => $idsForLog,
@@ -200,7 +200,7 @@ abstract class RevDel_List {
         * Record a log entry on the action
         * @param $params Associative array of parameters:
         *     newBits:         The new value of the *_deleted bitfield
-        *     oldBits:         The old value of the *_deleted bitfield. 
+        *     oldBits:         The old value of the *_deleted bitfield.
         *     title:           The target title
         *     ids:             The ID list
         *     comment:         The log comment
@@ -265,7 +265,7 @@ abstract class RevDel_List {
        }
 
        /**
-        * Start iteration. This must be called before current() or next(). 
+        * Start iteration. This must be called before current() or next().
         * @return First list item
         */
        public function reset() {
@@ -293,7 +293,7 @@ abstract class RevDel_List {
                $this->initCurrent();
                return $this->current;
        }
-       
+
        /**
         * Get the number of items in the list.
         */
@@ -312,7 +312,7 @@ abstract class RevDel_List {
        public function clearFileOps() {
        }
 
-       /** 
+       /**
         * A hook for setVisibility(): do batch updates pre-commit.
         * STUB
         * @return Status
@@ -322,9 +322,9 @@ abstract class RevDel_List {
        }
 
        /**
-        * A hook for setVisibility(): do any necessary updates post-commit. 
+        * A hook for setVisibility(): do any necessary updates post-commit.
         * STUB
-        * @return Status 
+        * @return Status
         */
        public function doPostCommitUpdates() {
                return Status::newGood();
@@ -361,7 +361,7 @@ abstract class RevDel_Item {
        /** The DB result row */
        var $row;
 
-       /** 
+       /**
         * @param $list RevDel_List
         * @param $row DB result row
         */
@@ -402,10 +402,10 @@ abstract class RevDel_Item {
                $field = $this->list->getTimestampField();
                return wfTimestamp( TS_MW, $this->row->$field );
        }
-       
+
        /**
         * Get the author user ID
-        */     
+        */
        public function getAuthorId() {
                $field = $this->list->getAuthorIdField();
                return intval( $this->row->$field );
@@ -413,13 +413,13 @@ abstract class RevDel_Item {
 
        /**
         * Get the author user name
-        */     
+        */
        public function getAuthorName() {
                $field = $this->list->getAuthorNameField();
                return strval( $this->row->$field );
        }
 
-       /** 
+       /**
         * Returns true if the item is "current", and the operation to set the given
         * bits can't be executed for that reason
         * STUB
@@ -432,7 +432,7 @@ abstract class RevDel_Item {
         * Returns true if the current user can view the item
         */
        abstract public function canView();
-       
+
        /**
         * Returns true if the current user can view the item text/file
         */
@@ -453,8 +453,8 @@ abstract class RevDel_Item {
         * Set the visibility of the item. This should do any necessary DB queries.
         *
         * The DB update query should have a condition which forces it to only update
-        * if the value in the DB matches the value fetched earlier with the SELECT. 
-        * If the update fails because it did not match, the function should return 
+        * if the value in the DB matches the value fetched earlier with the SELECT.
+        * If the update fails because it did not match, the function should return
         * false. This prevents concurrency problems.
         *
         * @return boolean success
index 7e961a4..8047bc0 100644 (file)
@@ -152,14 +152,14 @@ class Language {
                static $recursionLevel = 0;
 
                // Protect against path traversal below
-               if ( !Language::isValidCode( $code ) 
-                       || strcspn( $code, ":/\\\000" ) !== strlen( $code ) ) 
+               if ( !Language::isValidCode( $code )
+                       || strcspn( $code, ":/\\\000" ) !== strlen( $code ) )
                {
                        throw new MWException( "Invalid language code \"$code\"" );
                }
 
                if ( !Language::isValidBuiltInCode( $code ) ) {
-                       // It's not possible to customise this code with class files, so 
+                       // It's not possible to customise this code with class files, so
                        // just return a Language object. This is to support uselang= hacks.
                        $lang = new Language;
                        $lang->setCode( $code );
@@ -198,18 +198,18 @@ class Language {
        }
 
        /**
-        * Returns true if a language code string is of a valid form, whether or 
-        * not it exists. This includes codes which are used solely for 
+        * Returns true if a language code string is of a valid form, whether or
+        * not it exists. This includes codes which are used solely for
         * customisation via the MediaWiki namespace.
         */
        public static function isValidCode( $code ) {
-               return 
+               return
                        strcspn( $code, ":/\\\000" ) === strlen( $code )
                        && !preg_match( Title::getTitleInvalidRegex(), $code );
        }
 
        /**
-        * Returns true if a language code is of a valid form for the purposes of 
+        * Returns true if a language code is of a valid form for the purposes of
         * internal customisation of MediaWiki, via Messages*.php.
         */
        public static function isValidBuiltInCode( $code ) {
@@ -590,15 +590,15 @@ class Language {
        function getMonthName( $key ) {
                return $this->getMessageFromDB( self::$mMonthMsgs[$key - 1] );
        }
-       
+
        function getMonthNamesArray() {
                $monthNames = array( '' );
-               for ( $i=1; $i < 13; $i++ ) { 
+               for ( $i=1; $i < 13; $i++ ) {
                        $monthNames[] = $this->getMonthName( $i );
                }
                return $monthNames;
        }
-       
+
        function getMonthNameGen( $key ) {
                return $this->getMessageFromDB( self::$mMonthGenMsgs[$key - 1] );
        }
@@ -606,15 +606,15 @@ class Language {
        function getMonthAbbreviation( $key ) {
                return $this->getMessageFromDB( self::$mMonthAbbrevMsgs[$key - 1] );
        }
-       
+
        function getMonthAbbreviationsArray() {
                $monthNames = array('');
-               for ( $i=1; $i < 13; $i++ ) { 
+               for ( $i=1; $i < 13; $i++ ) {
                        $monthNames[] = $this->getMonthAbbreviation( $i );
                }
                return $monthNames;
        }
-       
+
        function getWeekdayName( $key ) {
                return $this->getMessageFromDB( self::$mWeekdayMsgs[$key - 1] );
        }
@@ -2427,7 +2427,7 @@ class Language {
                }
                # Do not truncate if the ellipsis makes the string longer/equal (bug 22181).
                # This check is *not* redundant if $adjustLength, due to the single case where
-               # LEN($ellipsis) > ABS($limit arg); $stringOriginal could be shorter than $string. 
+               # LEN($ellipsis) > ABS($limit arg); $stringOriginal could be shorter than $string.
                if ( strlen( $string ) < strlen( $stringOriginal ) ) {
                        return $string;
                } else {
@@ -2918,12 +2918,12 @@ class Language {
         */
        static function getFileName( $prefix = 'Language', $code, $suffix = '.php' ) {
                // Protect against path traversal
-               if ( !Language::isValidCode( $code ) 
-                       || strcspn( $code, ":/\\\000" ) !== strlen( $code ) ) 
+               if ( !Language::isValidCode( $code )
+                       || strcspn( $code, ":/\\\000" ) !== strlen( $code ) )
                {
                        throw new MWException( "Invalid language code \"$code\"" );
                }
-               
+
                return $prefix . str_replace( '-', '_', ucfirst( $code ) ) . $suffix;
        }
 
index f5f5093..09c9d4d 100644 (file)
@@ -2306,7 +2306,7 @@ Wiki: $PAGEEDITOR_WIKI
 
 Es werden dir solange keine weiteren Benachrichtigungs-E-Mails gesendet, bis du die Seite wieder besucht hast. Auf deiner Beobachtungsliste kannst du alle Benachrichtigungsmarkierungen zusammen zurücksetzen.
 
-             Dein freundliches {{SITENAME}}-Benachrichtigungssystem
+                        Dein freundliches {{SITENAME}}-Benachrichtigungssystem
 
 --
 Um die Einstellungen der E-Mail-Benachrichtigung anzupassen, besuche {{fullurl:{{#special:Preferences}}}}
@@ -2948,7 +2948,7 @@ Diese auf dem lokalen Rechner speichern und danach hier hochladen.',
 #p-personal ul,
 #p-cactions li a,
 #preftoc a {
-    text-transform: none;
+       text-transform: none;
 }',
 'vector.css'              => '/* Das folgende CSS wird für Benutzer der Vector-Benutzeroberfläche geladen. Für allgemeingültige Benutzeroberflächen-Anpassungen bitte [[MediaWiki:Common.css]] bearbeiten. */',
 'print.css'               => '/* Das folgende CSS wird in der Druckausgabe geladen. */',
index 50dda3c..bd6132d 100644 (file)
@@ -1722,16 +1722,16 @@ Try prefixing your query with ''all:'' to search all content (including talk pag
 You can search via Google in the meantime.
 Note that their indexes of {{SITENAME}} content may be out of date.',
 'googlesearch'                     => '<form method="get" action="http://www.google.com/search" id="googlesearch">
-    <input type="hidden" name="domains" value="{{SERVER}}" />
-    <input type="hidden" name="num" value="50" />
-    <input type="hidden" name="ie" value="$2" />
-    <input type="hidden" name="oe" value="$2" />
+       <input type="hidden" name="domains" value="{{SERVER}}" />
+       <input type="hidden" name="num" value="50" />
+       <input type="hidden" name="ie" value="$2" />
+       <input type="hidden" name="oe" value="$2" />
 
-    <input type="text" name="q" size="31" maxlength="255" value="$1" />
-    <input type="submit" name="btnG" value="$3" />
+       <input type="text" name="q" size="31" maxlength="255" value="$1" />
+       <input type="submit" name="btnG" value="$3" />
   <div>
-    <input type="radio" name="sitesearch" id="gwiki" value="{{SERVER}}" checked="checked" /><label for="gwiki">{{SITENAME}}</label>
-    <input type="radio" name="sitesearch" id="gWWW" value="" /><label for="gWWW">WWW</label>
+       <input type="radio" name="sitesearch" id="gwiki" value="{{SERVER}}" checked="checked" /><label for="gwiki">{{SITENAME}}</label>
+       <input type="radio" name="sitesearch" id="gWWW" value="" /><label for="gWWW">WWW</label>
   </div>
 </form>', # do not translate or duplicate this message to other languages
 
@@ -2767,7 +2767,7 @@ wiki: $PAGEEDITOR_WIKI
 There will be no other notifications in case of further changes unless you visit this page.
 You could also reset the notification flags for all your watched pages on your watchlist.
 
-             Your friendly {{SITENAME}} notification system
+                        Your friendly {{SITENAME}} notification system
 
 --
 To change your email notification settings, visit