From: Sam Reed Date: Fri, 23 Jul 2010 16:59:27 +0000 (+0000) Subject: Fixup code from r69753, create title from row and use that in the pageset X-Git-Tag: 1.31.0-rc.0~35991 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=71ff793e486af936f3417f4f4df74c41994d0e6c;p=lhc%2Fweb%2Fwiklou.git Fixup code from r69753, create title from row and use that in the pageset Also intval() page_namespace as per CR --- diff --git a/includes/api/ApiQueryIWBacklinks.php b/includes/api/ApiQueryIWBacklinks.php index 40a9a53c4e..909da72cfa 100644 --- a/includes/api/ApiQueryIWBacklinks.php +++ b/includes/api/ApiQueryIWBacklinks.php @@ -112,12 +112,12 @@ class ApiQueryIWBacklinks extends ApiQueryGeneratorBase { } if ( !is_null( $resultPageSet ) ) { - $pages[] = Title::makeTitle( $row->page_namespace, $row->page_title )->getPrefixedText(); + $pages[] = Title::newFromRow( $row ); } else { $entry = array(); $entry['pageid'] = intval( $row->page_id ); - $entry['ns'] = $row->page_namespace; + $entry['ns'] = intval( $row->page_namespace ); $entry['title'] = $row->page_title; if ( $row->page_is_redirect ) {