Per wikitech-l, run a bunch of URLs in the API output through wfExpandUrl(), so they...
[lhc/web/wiklou.git] / includes / api / ApiQueryIWLinks.php
index 6244793..9addf36 100644 (file)
@@ -112,7 +112,7 @@ class ApiQueryIWLinks extends ApiQueryBase {
                        if ( !is_null( $params['url'] ) ) {
                                $title = Title::newFromText( "{$row->iwl_prefix}:{$row->iwl_title}" );
                                if ( $title ) {
-                                       $entry['url'] = $title->getFullURL();
+                                       $entry['url'] = wfExpandUrl( $title->getFullURL() );
                                }
                        }