That method doesn't exist any more.
Change-Id: I35eb8e2d7e77a6fcb17187356bafd92cfede6b40
if ( $specialObj instanceof QueryPage ) {
$queryPage = $specialObj;
} else {
- if ( !class_exists( $class ) ) {
- $file = $specialObj->getFile();
- require_once $file;
- }
- $queryPage = new $class;
+ $class = get_class( $specialObj );
+ $this->error( "$class is not an instance of QueryPage.\n", 1 );
+ die;
}
if ( !$this->hasOption( 'only' ) || $this->getOption( 'only' ) == $queryPage->getName() ) {