From: Aaron Schulz Date: Wed, 25 Feb 2009 00:49:43 +0000 (+0000) Subject: (bug 16343) Non-exiting, but in use, category pages can be "go" match hits X-Git-Tag: 1.31.0-rc.0~42689 X-Git-Url: https://git.heureux-cyclage.org/?a=commitdiff_plain;h=5af333499cd9edae9010059b9a2c82a84f0fb42d;p=lhc%2Fweb%2Fwiklou.git (bug 16343) Non-exiting, but in use, category pages can be "go" match hits --- diff --git a/includes/SearchEngine.php b/includes/SearchEngine.php index cd8f804b3f..e5392f7c43 100644 --- a/includes/SearchEngine.php +++ b/includes/SearchEngine.php @@ -80,8 +80,13 @@ class SearchEngine { if (is_null($title)) return NULL; - if ( $title->getNamespace() == NS_SPECIAL || $title->isExternal() - || $title->exists() ) { + if ( $title->getNamespace() == NS_SPECIAL || $title->isExternal() || $title->exists() ) { + return $title; + } + + # See if it still otherwise has content is some sane sense + $article = MediaWiki::articleFromTitle( $title ); + if( $article->hasViewableContent() ) { return $title; }