'botedit' => array( 'boteditletter', 'recentchanges-label-bot' ),
'unpatrolled' => array( 'unpatrolledletter', 'recentchanges-label-unpatrolled' ),
);
- foreach( $messages as $key => &$value ) {
+ foreach( $messages as &$value ) {
$value[0] = wfMsgExt( $value[0], 'escapenoentities' );
$value[1] = wfMsgExt( $value[1], 'escapenoentities' );
}
if ( $option == 'icononly' ) {
// Unset any icons which don't have an image
- foreach ( $footericons as $footerIconsKey => &$footerIconsBlock ) {
+ foreach ( $footericons as &$footerIconsBlock ) {
foreach ( $footerIconsBlock as $footerIconKey => $footerIcon ) {
if ( !is_string( $footerIcon ) && !isset( $footerIcon['src'] ) ) {
unset( $footerIconsBlock[$footerIconKey] );
}
public function submitSettingsForm() {
- $newValues = $this->setVarsFromRequest( array( '_MysqlEngine', '_MysqlCharset' ) );
+ $this->setVarsFromRequest( array( '_MysqlEngine', '_MysqlCharset' ) );
$status = $this->submitWebUserBox();
if ( !$status->isOK() ) {
return $status;
}
// Validate the create checkbox
- $create = true;
$canCreate = $this->canCreateAccounts();
if ( $canCreate ) {
$this->setVar( '_CreateDBAccount', false );
public function createTables() {
$schema = $this->getVar( 'wgDBmwschema' );
- $user = $this->getVar( 'wgDBuser' );
$this->db = null;
$this->useAdmin = false;
* @param $colname
*/
function searchQuery( $term, $fulltext, $colname ) {
- $postgresVersion = $this->db->getServerVersion();
-
# Get the SQL fragment for the given term
$searchstring = $this->parseQuery( $term );
*/
class SpecialAllmessages extends SpecialPage {
+ /**
+ * @var AllmessagesTablePager
+ */
+ protected $table;
+
/**
* Constructor
*/
$this->table = new AllmessagesTablePager(
$this,
- $conds = array(),
+ array(),
wfGetLangObj( $wgRequest->getVal( 'lang', $par ) )
);
public $mLimitsShown;
+ /**
+ * @var Language
+ */
+ public $lang;
+
function __construct( $page, $conds, $langObj = null ) {
parent::__construct();
$this->mIndexField = 'am_title';