http://www.mediawiki.org/wiki/Special:Code/MediaWiki/90118
Revision: 90118
Author: aaron
Date: 2011-06-15 17:03:18 +0000 (Wed, 15 Jun 2011)
Log Message:
-----------
Broke some long lines
Modified Paths:
--------------
trunk/phase3/includes/LinksUpdate.php
trunk/phase3/includes/SkinTemplate.php
Modified: trunk/phase3/includes/LinksUpdate.php
===================================================================
--- trunk/phase3/includes/LinksUpdate.php 2011-06-15 16:33:13 UTC (rev
90117)
+++ trunk/phase3/includes/LinksUpdate.php 2011-06-15 17:03:18 UTC (rev
90118)
@@ -110,7 +110,8 @@
$existing = $this->getExistingImages();
$imageDeletes = $this->getImageDeletions( $existing );
- $this->incrTableUpdate( 'imagelinks', 'il', $imageDeletes,
$this->getImageInsertions( $existing ) );
+ $this->incrTableUpdate( 'imagelinks', 'il', $imageDeletes,
+ $this->getImageInsertions( $existing ) );
# Invalidate all image description pages which had links added
or removed
$imageUpdates = $imageDeletes + array_diff_key( $this->mImages,
$existing );
@@ -141,7 +142,8 @@
$categoryDeletes = $this->getCategoryDeletions( $existing );
- $this->incrTableUpdate( 'categorylinks', 'cl',
$categoryDeletes, $this->getCategoryInsertions( $existing ) );
+ $this->incrTableUpdate( 'categorylinks', 'cl', $categoryDeletes,
+ $this->getCategoryInsertions( $existing ) );
# Invalidate all categories which were added, deleted or
changed (set symmetric difference)
$categoryInserts = array_diff_assoc( $this->mCategories,
$existing );
@@ -154,7 +156,8 @@
$propertiesDeletes = $this->getPropertyDeletions( $existing );
- $this->incrTableUpdate( 'page_props', 'pp', $propertiesDeletes,
$this->getPropertyInsertions( $existing ) );
+ $this->incrTableUpdate( 'page_props', 'pp', $propertiesDeletes,
+ $this->getPropertyInsertions( $existing ) );
# Invalidate the necessary pages
$changed = $propertiesDeletes + array_diff_assoc(
$this->mProperties, $existing );
@@ -362,7 +365,9 @@
function getLinkInsertions( $existing = array() ) {
$arr = array();
foreach( $this->mLinks as $ns => $dbkeys ) {
- $diffs = isset( $existing[$ns] ) ? array_diff_key(
$dbkeys, $existing[$ns] ) : $dbkeys;
+ $diffs = isset( $existing[$ns] )
+ ? array_diff_key( $dbkeys, $existing[$ns] )
+ : $dbkeys;
foreach ( $diffs as $dbk => $id ) {
$arr[] = array(
'pl_from' => $this->mId,
Modified: trunk/phase3/includes/SkinTemplate.php
===================================================================
--- trunk/phase3/includes/SkinTemplate.php 2011-06-15 16:33:13 UTC (rev
90117)
+++ trunk/phase3/includes/SkinTemplate.php 2011-06-15 17:03:18 UTC (rev
90118)
@@ -674,7 +674,8 @@
# @todo FIXME: Class depends on skin
$login_url['class'] = 'link-https';
if ( isset($createaccount_url) ) {
- $https_url = preg_replace( '/^http:/',
'https:', $title->getFullURL("type=signup") );
+ $https_url = preg_replace( '/^http:/',
'https:',
+
$title->getFullURL("type=signup") );
$createaccount_url['href'] =
$https_url;
# @todo FIXME: Class depends on skin
$createaccount_url['class'] =
'link-https';
@@ -742,7 +743,8 @@
$text = $msg->text();
} else {
global $wgContLang;
- $text = $wgContLang->getFormattedNsText(
MWNamespace::getSubject( $title->getNamespace() ) );
+ $text = $wgContLang->getFormattedNsText(
+ MWNamespace::getSubject( $title->getNamespace()
) );
}
$result = array();
@@ -1033,7 +1035,8 @@
'context' => 'subject'
);
- wfRunHooks( 'SkinTemplateNavigation::SpecialPage',
array( &$this, &$content_navigation ) );
+ wfRunHooks( 'SkinTemplateNavigation::SpecialPage',
+ array( &$this, &$content_navigation ) );
}
// Gets list of language variants
@@ -1184,7 +1187,8 @@
if ( !$out->isPrintable() ) {
$nav_urls['print'] = array(
'text' => wfMsg( 'printableversion' ),
- 'href' =>
$this->getTitle()->getLocalURL( $wgRequest->appendQueryValue( 'printable',
'yes', true ) )
+ 'href' =>
$this->getTitle()->getLocalURL(
+ $wgRequest->appendQueryValue(
'printable', 'yes', true ) )
);
}
@@ -1198,7 +1202,8 @@
}
// Use the copy of revision ID in case this
undocumented, shady hook tries to mess with internals
- wfRunHooks(
'SkinTemplateBuildNavUrlsNav_urlsAfterPermalink', array( &$this, &$nav_urls,
&$revid, &$revid ) );
+ wfRunHooks(
'SkinTemplateBuildNavUrlsNav_urlsAfterPermalink',
+ array( &$this, &$nav_urls, &$revid, &$revid ) );
}
if( $this->getTitle()->getNamespace() != NS_SPECIAL ) {
@@ -1663,7 +1668,8 @@
$realAttrs = array(
'type' => 'submit',
'name' => $mode,
- 'value' =>
$this->translator->translate( $mode == 'go' ? 'searcharticle' : 'searchbutton'
),
+ 'value' => $this->translator->translate(
+ $mode == 'go' ? 'searcharticle'
: 'searchbutton' ),
);
$realAttrs = array_merge(
$realAttrs,
@@ -1685,7 +1691,9 @@
unset( $buttonAttrs['alt'] );
$imgAttrs = array(
'src' => $attrs['src'],
- 'alt' => isset( $attrs['alt'] ) ?
$attrs['alt'] : $this->translator->translate( 'searchbutton' ),
+ 'alt' => isset( $attrs['alt'] )
+ ? $attrs['alt']
+ : $this->translator->translate(
'searchbutton' ),
);
return Html::rawElement( 'button',
$buttonAttrs, Html::element( 'img', $imgAttrs ) );
default:
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs