Index: trunk/phase3/maintenance/updateSpecialPages.php |
— | — | @@ -83,11 +83,15 @@ |
84 | 84 | $this->output( "No such special page: $special\n" ); |
85 | 85 | exit; |
86 | 86 | } |
87 | | - if ( !class_exists( $class ) ) { |
88 | | - $file = $specialObj->getFile(); |
89 | | - require_once( $file ); |
| 87 | + if ( $specialObj instanceof QueryPage ) { |
| 88 | + $queryPage = $specialObj; |
| 89 | + } else { |
| 90 | + if ( !class_exists( $class ) ) { |
| 91 | + $file = $specialObj->getFile(); |
| 92 | + require_once( $file ); |
| 93 | + } |
| 94 | + $queryPage = new $class; |
90 | 95 | } |
91 | | - $queryPage = new $class; |
92 | 96 | |
93 | 97 | if ( !$this->hasOption( 'only' ) || $this->getOption( 'only' ) == $queryPage->getName() ) { |
94 | 98 | $this->output( sprintf( '%-30s ', $special ) ); |