Add descriptionurl to imageinfo
[lhc/web/wiklou.git] / 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();