Index: trunk/phase3/includes/SearchEngine.php |
— | — | @@ -80,10 +80,15 @@ |
81 | 81 | if (is_null($title)) |
82 | 82 | return NULL; |
83 | 83 | |
84 | | - if ( $title->getNamespace() == NS_SPECIAL || $title->isExternal() |
85 | | - || $title->exists() ) { |
| 84 | + if ( $title->getNamespace() == NS_SPECIAL || $title->isExternal() || $title->exists() ) { |
86 | 85 | return $title; |
87 | 86 | } |
| 87 | + |
| 88 | + # See if it still otherwise has content is some sane sense |
| 89 | + $article = MediaWiki::articleFromTitle( $title ); |
| 90 | + if( $article->hasViewableContent() ) { |
| 91 | + return $title; |
| 92 | + } |
88 | 93 | |
89 | 94 | # Now try all lower case (i.e. first letter capitalized) |
90 | 95 | # |