Merge "Change of Title->exists() to Title->isKnown() for subpage links"
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 6 Jun 2012 22:43:50 +0000 (22:43 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 6 Jun 2012 22:43:50 +0000 (22:43 +0000)
1  2 
includes/Skin.php

diff --combined includes/Skin.php
@@@ -164,6 -164,11 +164,6 @@@ abstract class Skin extends ContextSour
                if ( !MWInit::classExists( $className ) ) {
  
                        if ( !defined( 'MW_COMPILED' ) ) {
 -                              // Preload base classes to work around APC/PHP5 bug
 -                              $deps = "{$wgStyleDirectory}/{$skinName}.deps.php";
 -                              if ( file_exists( $deps ) ) {
 -                                      include_once( $deps );
 -                              }
                                require_once( "{$wgStyleDirectory}/{$skinName}.php" );
                        }
  
                                        $display .= $link;
                                        $linkObj = Title::newFromText( $growinglink );
  
-                                       if ( is_object( $linkObj ) && $linkObj->exists() ) {
+                                       if ( is_object( $linkObj ) && $linkObj->isKnown() ) {
                                                $getlink = Linker::linkKnown(
                                                        $linkObj,
                                                        htmlspecialchars( $display )