dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Add 3D filetype for STL files"
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiQueryLogEvents.php
diff --git
a/includes/api/ApiQueryLogEvents.php
b/includes/api/ApiQueryLogEvents.php
index
2dcd0b4
..
df8a11e
100644
(file)
--- a/
includes/api/ApiQueryLogEvents.php
+++ b/
includes/api/ApiQueryLogEvents.php
@@
-198,7
+198,7
@@
class ApiQueryLogEvents extends ApiQueryBase {
$this->addWhere( 'log_title ' . $db->buildLike( $title->getDBkey(), $db->anyString() ) );
}
$this->addWhere( 'log_title ' . $db->buildLike( $title->getDBkey(), $db->anyString() ) );
}
- // Paranoia: avoid brute force searches (
bug 17
342)
+ // Paranoia: avoid brute force searches (
T19
342)
if ( $params['namespace'] !== null || !is_null( $title ) || !is_null( $user ) ) {
if ( !$this->getUser()->isAllowed( 'deletedhistory' ) ) {
$titleBits = LogPage::DELETED_ACTION;
if ( $params['namespace'] !== null || !is_null( $title ) || !is_null( $user ) ) {
if ( !$this->getUser()->isAllowed( 'deletedhistory' ) ) {
$titleBits = LogPage::DELETED_ACTION;
@@
-435,7
+435,8
@@
class ApiQueryLogEvents extends ApiQueryBase {
],
'title' => null,
'namespace' => [
],
'title' => null,
'namespace' => [
- ApiBase::PARAM_TYPE => 'namespace'
+ ApiBase::PARAM_TYPE => 'namespace',
+ ApiBase::PARAM_EXTRA_NAMESPACES => [ NS_MEDIA, NS_SPECIAL ],
],
'prefix' => [],
'tag' => null,
],
'prefix' => [],
'tag' => null,
@@
-466,6
+467,6
@@
class ApiQueryLogEvents extends ApiQueryBase {
}
public function getHelpUrls() {
}
public function getHelpUrls() {
- return 'https://www.mediawiki.org/wiki/API:Logevents';
+ return 'https://www.mediawiki.org/wiki/
Special:MyLanguage/
API:Logevents';
}
}
}
}