Index: trunk/phase3/includes/Title.php |
— | — | @@ -2474,16 +2474,15 @@ |
2475 | 2475 | } |
2476 | 2476 | |
2477 | 2477 | /** |
2478 | | - * Should a link should be displayed as a known link, just based on its title? |
| 2478 | + * Do we know that this title definitely exists, or should we otherwise |
| 2479 | + * consider that it exists? |
2479 | 2480 | * |
2480 | | - * Currently, a self-link with a fragment and special pages are in |
2481 | | - * this category. System messages that have defined default values are also |
2482 | | - * always known. |
| 2481 | + * @return bool |
2483 | 2482 | */ |
2484 | 2483 | public function isAlwaysKnown() { |
2485 | | - return ( $this->isExternal() || |
2486 | | - ( 0 == $this->mNamespace && "" == $this->mDbkeyform ) || |
2487 | | - ( NS_MEDIAWIKI == $this->mNamespace && wfMsgWeirdKey( $this->mDbkeyform ) ) ); |
| 2484 | + return $this->isExternal() |
| 2485 | + || ( $this->mNamespace == NS_MAIN && $this->mDbkeyform == '' ) |
| 2486 | + || ( $this->mNamespace == NS_MEDIAWIKI && wfMsgWeirdKey( $this->mDbkeyform ) ); |
2488 | 2487 | } |
2489 | 2488 | |
2490 | 2489 | /** |