dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1fe405
)
ApiHelp: Fix undefined array index reference
author
Brad Jorsch
<bjorsch@wikimedia.org>
Thu, 7 May 2015 16:21:27 +0000
(12:21 -0400)
committer
Brad Jorsch
<bjorsch@wikimedia.org>
Thu, 7 May 2015 16:21:27 +0000
(12:21 -0400)
Follows up I0219689.
Change-Id: I833d8eab49a7093872a66c3bb0d314f6c7adb98c
includes/api/ApiHelp.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiHelp.php
b/includes/api/ApiHelp.php
index
c302ad1
..
27fc378
100644
(file)
--- a/
includes/api/ApiHelp.php
+++ b/
includes/api/ApiHelp.php
@@
-111,7
+111,7
@@
class ApiHelp extends ApiBase {
if ( $cacheHelpTimeout > 0 ) {
// Get help text from cache if present
$cacheKey = wfMemcKey( 'apihelp', $modules[0]->getModulePath(),
-
$options['toc'] ? 1 : 0
,
+
(int)!empty( $options['toc'] )
,
str_replace( ' ', '_', SpecialVersion::getVersion( 'nodb' ) ) );
$cached = $wgMemc->get( $cacheKey );
if ( $cached ) {