* (bug 17069) Added ucshow=patrolled|!patrolled to list=usercontribs
* action=delete respects $wgDeleteRevisionsLimit and the bigdelete user right
* (bug 15949) Add undo functionality to action=edit
+* (bug 17142) Added redirects parameter to action=opensearch to control redirect
+ resolution
=== Languages updated in 1.15 ===
$this->getMain()->setCacheMaxAge(1200);
$srchres = PrefixSearch::titleSearch( $search, $limit, $namespaces );
+
+ if( $params['redirects'] ) {
+ foreach( $srchres as &$t ) {
+ $title = Title::newFromText( $t );
+ if( is_null( $title ) ) {
+ continue;
+ }
+ $article = new Article( $title );
+ $redirTitle = $article->getRedirectTarget();
+ if( !is_null( $redirTitle ) ) {
+ $t = $redirTitle->getPrefixedText();
+ }
+ }
+ }
// Set top level elements
$result = $this->getResult();
ApiBase :: PARAM_TYPE => 'namespace',
ApiBase :: PARAM_ISMULTI => true
),
+ 'redirects' => false,
);
}
'search' => 'Search string',
'limit' => 'Maximum amount of results to return',
'namespace' => 'Namespaces to search',
+ 'redirects' => 'Resolve redirects',
);
}