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 @@
269269 }
270270
271271 $examples = $this->getExamples();
272 - if ( $examples !== false ) {
 272+ if ( $examples !== false && $examples !== '' ) {
273273 if ( !is_array( $examples ) ) {
274274 $examples = array(
275275 $examples

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r107393Re-instate most of the revisions for bug 33147 "API examples should explain w...reedy16:22, 27 December 2011

Status & tagging log