/**
* API module to handle links table back-queries
*
- * Created on Aug 19, 2014
- *
* Copyright © 2014 Wikimedia Foundation and contributors
*
* This program is free software; you can redistribute it and/or modify
}
} else {
$this->addWhereFld( "{$p}_from_namespace", $params['namespace'] );
- if ( !empty( $settings['from_namespace'] ) && count( $params['namespace'] ) > 1 ) {
+ if ( !empty( $settings['from_namespace'] )
+ && $params['namespace'] !== null && count( $params['namespace'] ) > 1
+ ) {
$sortby["{$p}_from_namespace"] = 'int';
}
}
$settings = self::$settings[$this->getModuleName()];
$name = $this->getModuleName();
$path = $this->getModulePath();
- $title = isset( $settings['exampletitle'] ) ? $settings['exampletitle'] : 'Main Page';
+ $title = $settings['exampletitle'] ?? 'Main Page';
$etitle = rawurlencode( $title );
return [