Index: trunk/phase3/includes/filerepo/ForeignAPIRepo.php |
— | — | @@ -160,6 +160,10 @@ |
161 | 161 | $ret = array(); |
162 | 162 | if ( isset( $results['query']['allimages'] ) ) { |
163 | 163 | foreach ( $results['query']['allimages'] as $img ) { |
| 164 | + // 1.14 was broken, doesn't return name attribute |
| 165 | + if( !isset( $img['name'] ) ) { |
| 166 | + continue; |
| 167 | + } |
164 | 168 | $ret[] = new ForeignAPIFile( Title::makeTitle( NS_FILE, $img['name'] ), $this, $img ); |
165 | 169 | } |
166 | 170 | } |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -299,6 +299,8 @@ |
300 | 300 | * (bug 24804) Corrected commafying in Polish and Ukrainian |
301 | 301 | * "Difference between pages" is now displayed instead of "Difference between |
302 | 302 | revisions" on diffs when appropriate. |
| 303 | +* (bug 23703) ForeignAPIRepo fails on findBySha1() when using a 1.14 install as |
| 304 | + a repository due to missing 'name' attribute from the API list=allimages |
303 | 305 | |
304 | 306 | === API changes in 1.17 === |
305 | 307 | * (bug 22738) Allow filtering by action type on query=logevent. |