diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2015-12-20 09:00:55 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2015-12-20 09:00:55 +0100 |
commit | a2190ac74dd4d7080b12bab90e552d7aa81209ef (patch) | |
tree | 8b31f38de9882d18df54cf8d9e0de74167a094eb /includes/api/ApiQueryBacklinksprop.php | |
parent | 15e69f7b20b6596b9148030acce5b59993b95a45 (diff) | |
parent | 257401d8b2cf661adf36c84b0e3fd1cf85e33c22 (diff) |
Merge branch 'mw-1.26'
Diffstat (limited to 'includes/api/ApiQueryBacklinksprop.php')
-rw-r--r-- | includes/api/ApiQueryBacklinksprop.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/api/ApiQueryBacklinksprop.php b/includes/api/ApiQueryBacklinksprop.php index 8e271e7b..a50d58b2 100644 --- a/includes/api/ApiQueryBacklinksprop.php +++ b/includes/api/ApiQueryBacklinksprop.php @@ -277,7 +277,7 @@ class ApiQueryBacklinksprop extends ApiQueryGeneratorBase { $vals = array(); if ( $fld_pageid ) { - $vals['pageid'] = $row->page_id; + $vals['pageid'] = (int)$row->page_id; } if ( $fld_title ) { ApiQueryBase::addTitleInfo( $vals, @@ -335,6 +335,7 @@ class ApiQueryBacklinksprop extends ApiQueryGeneratorBase { ), ApiBase::PARAM_ISMULTI => true, ApiBase::PARAM_DFLT => 'pageid|title', + ApiBase::PARAM_HELP_MSG_PER_VALUE => array(), ), 'namespace' => array( ApiBase::PARAM_ISMULTI => true, @@ -405,8 +406,7 @@ class ApiQueryBacklinksprop extends ApiQueryGeneratorBase { } public function getHelpUrls() { - $name = $this->getModuleName(); - $prefix = $this->getModulePrefix(); - return "https://www.mediawiki.org/wiki/API:Properties#{$name}_.2F_{$prefix}"; + $name = ucfirst( $this->getModuleName() ); + return "https://www.mediawiki.org/wiki/API:{$name}"; } } |