HTML 2???
[lhc/web/wiklou.git] / includes / api / ApiQueryImages.php
index ad1e8a6..f03b287 100644 (file)
@@ -91,7 +91,7 @@ class ApiQueryImages extends ApiQueryGeneratorBase {
                        foreach ( $params['images'] as $img ) {
                                $title = Title::newFromText( $img );
                                if ( !$title || $title->getNamespace() != NS_FILE ) {
-                                       $this->setWarning( "``$img'' is not a file" );
+                                       $this->setWarning( "\"$img\" is not a file" );
                                } else {
                                        $images[] = $title->getDBkey();
                                }
@@ -185,10 +185,8 @@ class ApiQueryImages extends ApiQueryGeneratorBase {
 
        public function getExamples() {
                return array(
-                       'Get a list of images used in the [[Main Page]]:',
-                       '  api.php?action=query&prop=images&titles=Main%20Page',
-                       'Get information about all images used in the [[Main Page]]:',
-                       '  api.php?action=query&generator=images&titles=Main%20Page&prop=info'
+                       'api.php?action=query&prop=images&titles=Main%20Page' => 'Get a list of images used in the [[Main Page]]',
+                       'api.php?action=query&generator=images&titles=Main%20Page&prop=info' => 'Get information about all images used in the [[Main Page]]',
                );
        }