Index: trunk/phase3/includes/FakeTitle.php |
— | — | @@ -3,15 +3,13 @@ |
4 | 4 | /** |
5 | 5 | * Fake title class that triggers an error if any members are called |
6 | 6 | */ |
7 | | -class FakeTitle { |
| 7 | +class FakeTitle extends Title { |
8 | 8 | function error() { throw new MWException( "Attempt to call member function of FakeTitle\n" ); } |
9 | 9 | |
10 | 10 | // PHP 5.1 method overload |
11 | 11 | function __call( $name, $args ) { $this->error(); } |
12 | 12 | |
13 | 13 | // PHP <5.1 compatibility |
14 | | - function getInterwikiLink() { $this->error(); } |
15 | | - function getInterwikiCached() { $this->error(); } |
16 | 14 | function isLocal() { $this->error(); } |
17 | 15 | function isTrans() { $this->error(); } |
18 | 16 | function getText() { $this->error(); } |