Index: branches/wmf/1.19wmf1/includes/api/ApiParamInfo.php |
— | — | @@ -147,6 +147,9 @@ |
148 | 148 | $examples = $obj->getExamples(); |
149 | 149 | $retval['allexamples'] = array(); |
150 | 150 | if ( $examples !== false ) { |
| 151 | + if ( is_string( $examples ) ) { |
| 152 | + $examples = array( $examples ); |
| 153 | + } |
151 | 154 | foreach( $examples as $k => $v ) { |
152 | 155 | if ( strlen( $retval['examples'] ) ) { |
153 | 156 | $retval['examples'] .= ' '; |
Property changes on: branches/wmf/1.19wmf1/includes/api |
___________________________________________________________________ |
Modified: svn:mergeinfo |
154 | 157 | Merged /trunk/phase3/includes/api:r112290 |
Property changes on: branches/wmf/1.19wmf1/includes |
___________________________________________________________________ |
Modified: svn:mergeinfo |
155 | 158 | Merged /trunk/phase3/includes:r112290 |
Property changes on: branches/wmf/1.19wmf1 |
___________________________________________________________________ |
Modified: svn:mergeinfo |
156 | 159 | Merged /trunk/phase3:r112290 |