r71727 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r71726‎ | r71727 | r71728 >
Date:19:06, 26 August 2010
Author:kaldari
Status:ok
Tags:
Comment:
correctly handle state restore of languages (even if no languages were selected) in edit form
Modified paths:
  • /trunk/extensions/CentralNotice/SpecialCentralNotice.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralNotice/SpecialCentralNotice.php
@@ -754,7 +754,11 @@
755755 $endArray['day'] . '000000'
756756 ;
757757 $projectSelected = $wgRequest->getVal( 'project_name' );
758 - $noticeLanguages = $wgRequest->getArray( 'project_languages' );
 758+ if ( $wgRequest->getArray( 'project_languages' ) ) {
 759+ $noticeLanguages = $wgRequest->getArray( 'project_languages' );
 760+ } else {
 761+ $noticeLanguages = array();
 762+ }
759763 } else { // Defaults
760764 $startTimestamp = $row->not_start;
761765 $endTimestamp = $row->not_end;

Status & tagging log