http://www.mediawiki.org/wiki/Special:Code/MediaWiki/90681
Revision: 90681
Author: kaldari
Date: 2011-06-23 22:19:56 +0000 (Thu, 23 Jun 2011)
Log Message:
-----------
trimming all lines to 80 chars per coding conventions
Modified Paths:
--------------
trunk/extensions/CentralNotice/SpecialNoticeTemplate.php
Modified: trunk/extensions/CentralNotice/SpecialNoticeTemplate.php
===================================================================
--- trunk/extensions/CentralNotice/SpecialNoticeTemplate.php 2011-06-23
22:18:55 UTC (rev 90680)
+++ trunk/extensions/CentralNotice/SpecialNoticeTemplate.php 2011-06-23
22:19:56 UTC (rev 90681)
@@ -220,7 +220,8 @@
* Show "Add a banner" interface
*/
function showAdd() {
- global $wgOut, $wgUser, $wgExtensionAssetsPath, $wgLang,
$wgRequest, $wgNoticeEnableFundraising;
+ global $wgOut, $wgUser, $wgExtensionAssetsPath, $wgLang,
$wgRequest,
+ $wgNoticeEnableFundraising;
$scriptPath = "$wgExtensionAssetsPath/CentralNotice";
// Build HTML
@@ -271,7 +272,8 @@
$htmlOut .= Xml::check( 'fundraising', $fundraising,
array( 'id' => 'fundraising' ) );
$htmlOut .= Xml::label( wfMsg(
'centralnotice-banner-fundraising' ), 'fundraising' );
$htmlOut .= Xml::closeElement( 'p' );
- $htmlOut .= Xml::openElement( 'div', array( 'id' =>
'fundraisingInterface', 'style' => 'display: none;' ) );
+ $htmlOut .= Xml::openElement( 'div',
+ array( 'id' => 'fundraisingInterface', 'style'
=> 'display: none;' ) );
$htmlOut .= Xml::tags( 'p', array(), wfMsg(
'centralnotice-banner-fundraising-help' ) );
$htmlOut .= Xml::tags( 'p', array(),
Xml::inputLabel(
@@ -316,7 +318,8 @@
* View or edit an individual banner
*/
private function showView() {
- global $wgOut, $wgUser, $wgRequest, $wgLanguageCode,
$wgExtensionAssetsPath, $wgLang, $wgNoticeEnableFundraising;
+ global $wgOut, $wgUser, $wgRequest, $wgLanguageCode,
$wgExtensionAssetsPath, $wgLang,
+ $wgNoticeEnableFundraising;
$scriptPath = "$wgExtensionAssetsPath/CentralNotice";
$sk = $wgUser->getSkin();
@@ -581,14 +584,17 @@
$htmlOut .= Xml::openElement( 'p', null );
$htmlOut .= Xml::check( 'fundraising',
$fundraising,
wfArrayMerge( $disabled, array( 'id' =>
'fundraising' ) ) );
- $htmlOut .= Xml::label( wfMsg(
'centralnotice-banner-fundraising' ), 'fundraising' );
+ $htmlOut .= Xml::label( wfMsg(
'centralnotice-banner-fundraising' ),
+ 'fundraising' );
$htmlOut .= Xml::closeElement( 'p' );
if ( $fundraising ) {
$htmlOut .= Xml::openElement( 'div',
array( 'id'=>'fundraisingInterface' ) );
} else {
- $htmlOut .= Xml::openElement( 'div',
array( 'id'=>'fundraisingInterface', 'style'=>'display:none;' ) );
+ $htmlOut .= Xml::openElement( 'div',
+ array(
'id'=>'fundraisingInterface', 'style'=>'display:none;' ) );
}
- $htmlOut .= Xml::tags( 'p', array(), wfMsg(
'centralnotice-banner-fundraising-help' ) );
+ $htmlOut .= Xml::tags( 'p', array(),
+ wfMsg(
'centralnotice-banner-fundraising-help' ) );
$htmlOut .= Xml::tags( 'p', array(),
Xml::inputLabel(
wfMsg(
'centralnotice-banner-landing-pages' ),
@@ -765,7 +771,9 @@
/**
* Create a new banner
*/
- private function addTemplate( $name, $body, $displayAnon,
$displayAccount, $fundraising, $landingPages ) {
+ private function addTemplate( $name, $body, $displayAnon,
$displayAccount, $fundraising,
+ $landingPages ) {
+
if ( $body == '' || $name == '' ) {
$this->showError( 'centralnotice-null-string' );
return;
@@ -810,7 +818,9 @@
/**
* Update a banner
*/
- private function editTemplate( $name, $body, $displayAnon,
$displayAccount, $fundraising, $landingPages ) {
+ private function editTemplate( $name, $body, $displayAnon,
$displayAccount, $fundraising,
+ $landingPages ) {
+
if ( $body == '' || $name == '' ) {
$this->showError( 'centralnotice-null-string' );
return;
@@ -879,7 +889,8 @@
$template_body = Revision::newFromTitle( $bodyPage )->getText();
// Create new banner
- if ( $this->addTemplate( $dest, $template_body, $displayAnon,
$displayAccount, $fundraising, $landingPages ) ) {
+ if ( $this->addTemplate( $dest, $template_body, $displayAnon,
$displayAccount, $fundraising,
+ $landingPages ) ) {
// Populate the fields
foreach ( $langs as $lang => $fields ) {
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs