r107681 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r107680
|
r107681
|
r107682
>
Date:
00:22, 31 December 2011
Author:
reedy
Status:
ok
Tags:
Comment:
Followup
r107393
, treat '' the same as getting false from getExamples, the default if it's not overridden
Modified paths:
/trunk/phase3/includes/api/ApiBase.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/phase3/includes/api/ApiBase.php
—
—
@@ -268,7 +268,7 @@
269
269
}
270
270
271
271
$examples = $this->getExamples();
272
- if ( $examples !== false ) {
272
+ if ( $examples !== false && $examples !== '' ) {
273
273
if ( !is_array( $examples ) ) {
274
274
$examples = array(
275
275
$examples
Past revisions this follows-up on
Revision
Commit summary
Author
Date
r107393
Re-instate most of the revisions for
bug 33147
"API examples should explain w...
reedy
16:22, 27 December 2011
Status & tagging log
09:33, 31 December 2011
Nikerabbit
(
talk
|
contribs
)
changed the
status
of r107681
[
removed:
new
added:
ok]