to same server
* $wgSpecialVersionExtended shows the extended version information besides
PHP and database version.
-* $wgSecondaryGoNamespaces allows an arry of namespaces to be checked when the
- GO button is pressed, in addition to the main namespace.
* (bug 19907) $wgCrossSiteAJAXdomains and $wgCrossSiteAJAXdomainExceptions added
to control which external domains may access the API via cross-site AJAX.
* $wgMaintenanceScripts for extensions to add their scripts to the default list
* (bug 14201) Set $wgDBadminuser/$wgDBadminpassword during setup
* (bug 18768) Remove AdminSettings requirements. Maintenance environment
will still load it if it exists, but it's not required for anything
-* Added $wgSecondaryGoNamespaces, allowing an array of namespaces to be checked
- when the Go button is pressed in addition to the main namespace.
* (bug 19900) The "listgrouprights-key" message is now wrapped in a div with
class "mw-listgrouprights-key"
* (bug 471) Allow RSS feeds for watchlist, using an opt-in security token
*/
$wgAllowPrefChange = array();
-/**
- * If an exact match is not found, try to find a match in different namespaces
- * before performing a search.
- *
- * Array: Ids of namespaces to attempt match in, in desired order.
- */
-$wgSecondaryGoNamespaces = null;
-
/**
* Settings for incoming cross-site AJAX requests:
* @return Title
*/
public static function getNearMatch( $searchterm ) {
- global $wgContLang, $wgSecondaryGoNamespaces;
+ global $wgContLang;
$allSearchTerms = array($searchterm);
return $title;
}
- # If a match is not found in the main namespace look in secondary go namespaces.
- if( $wgSecondaryGoNamespaces && $title->getNamespace() == NS_MAIN ) {
- foreach( $wgSecondaryGoNamespaces as $ns ) {
- $title = Title::newFromText( $term, $ns );
- if( $title && $title->exists() ) return $title;
- }
- }
-
# Now try all lower case (i.e. first letter capitalized)
#
$title = Title::newFromText( $wgContLang->lc( $term ) );