Add descriptionurl to imageinfo
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Wed, 21 May 2008 13:03:07 +0000 (13:03 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Wed, 21 May 2008 13:03:07 +0000 (13:03 +0000)
includes/api/ApiQueryImageInfo.php

index 7b372e8..505c560 100644 (file)
@@ -132,6 +132,7 @@ class ApiQueryImageInfo extends ApiQueryBase {
                                }
                        }
                        $vals['url'] = $file->getFullURL();
+                       $vals['descriptionurl'] = wfExpandUrl( $file->getDescriptionUrl() );
                }
                if( isset( $prop['comment'] ) )
                        $vals['comment'] = $file->getDescription();