* BREAKING CHANGE: list={backlinks,embeddedin,imageusage} now return an array with keys 0, 1, 2, ... (list) rather than an array with pageIDs as keys (hash table/associative array) for consistency with other list= modules.
* Attempting to fix an error about "Invalid title ``''" (i.e. empty string as title) I encountered at Wikipedia.
non-hidden categories
* (bug 15228) Combining revids= and redirects now throws a warning instead of an
error, and still resolves redirects generated by the generator.
+* list={backlinks,embeddedin,imageusage} now return arrays with keys 0, 1, 2,
+ etc. (AKA lists) instead of arrays with pageIDs as keys (AKA hash tables)
+ for consistency with other list modules.
=== Languages updated in 1.14 ===
$resultData = array();
foreach($this->data as $ns => $a)
foreach($a as $title => $arr)
- $resultData[$arr['pageid']] = $arr;
+ $resultData[] = $arr;
$result = $this->getResult();
$result->setIndexedTagName($resultData, $this->bl_code);
$result->addValue('query', $this->getModuleName(), $resultData);
public function titleToKey($title) {
$t = Title::newFromText($title);
if(!$t)
+ {
+ # Don't throw an error if we got an empty string
+ if($title == '')
+ return '';
$this->dieUsageMsg(array('invalidtitle', $title));
+ }
return $t->getDbKey();
}
$t = Title::newFromDbKey($key);
# This really shouldn't happen but we gotta check anyway
if(!$t)
+ {
+ # Don't throw an error if we got an empty string
+ if($key == '')
+ return '';
$this->dieUsageMsg(array('invalidtitle', $key));
+ }
return $t->getPrefixedText();
}