r48215 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r48214‎ | r48215 | r48216 >
Date:10:44, 9 March 2009
Author:catrope
Status:ok
Tags:
Comment:
API: Change Image: to File: in examples
Modified paths:
  • /trunk/phase3/includes/api/ApiQueryBacklinks.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryDuplicateFiles.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryImageInfo.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQueryBacklinks.php
@@ -447,8 +447,8 @@
448448 "api.php?action=query&generator=embeddedin&geititle=Template:Stub&prop=info"
449449 ),
450450 'imageusage' => array (
451 - "api.php?action=query&list=imageusage&iutitle=Image:Albert%20Einstein%20Head.jpg",
452 - "api.php?action=query&generator=imageusage&giutitle=Image:Albert%20Einstein%20Head.jpg&prop=info"
 451+ "api.php?action=query&list=imageusage&iutitle=File:Albert%20Einstein%20Head.jpg",
 452+ "api.php?action=query&generator=imageusage&giutitle=File:Albert%20Einstein%20Head.jpg&prop=info"
453453 )
454454 );
455455
Index: trunk/phase3/includes/api/ApiQueryImageInfo.php
@@ -307,8 +307,8 @@
308308
309309 protected function getExamples() {
310310 return array (
311 - 'api.php?action=query&titles=Image:Albert%20Einstein%20Head.jpg&prop=imageinfo',
312 - 'api.php?action=query&titles=Image:Test.jpg&prop=imageinfo&iilimit=50&iiend=20071231235959&iiprop=timestamp|user|url',
 311+ 'api.php?action=query&titles=File:Albert%20Einstein%20Head.jpg&prop=imageinfo',
 312+ 'api.php?action=query&titles=File:Test.jpg&prop=imageinfo&iilimit=50&iiend=20071231235959&iiprop=timestamp|user|url',
313313 );
314314 }
315315
Index: trunk/phase3/includes/api/ApiQueryDuplicateFiles.php
@@ -147,7 +147,7 @@
148148 }
149149
150150 protected function getExamples() {
151 - return array ( 'api.php?action=query&titles=Image:Albert_Einstein_Head.jpg&prop=duplicatefiles',
 151+ return array ( 'api.php?action=query&titles=File:Albert_Einstein_Head.jpg&prop=duplicatefiles',
152152 'api.php?action=query&generator=allimages&prop=duplicatefiles',
153153 );
154154 }

Status & tagging log