I see brion already replied. At any rate, be aware that you should NOT use
isExpensive() as true, as the updatespecialpages.php file will get confused.
Travis Derouin-2 wrote:
Hi,
I'm trying to extend QueryPage into an extension, which should be
pretty simple. If I declare the class in a new file located in the
extensions subdirectory to extend QueryPage:
class BuddyPage extends PageQueryPage {
}
I get:
Fatal error: Class 'PageQueryPage' not found in
/var/www/html/mediawiki-1.11.0/extensions/BuddyPage.php on line 21
But if I include QueryPage.php:
require_once('QueryPage.php');
I get the error:
Fatal error: Call to undefined function wfRunHooks() in
/var/www/html/mediawiki-1.11.0/includes/QueryPage.php on line 46
Seems like a bit of a chicken and egg problem, any ideas?
Travis
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/wikitech-l
--
View this message in context:
http://www.nabble.com/creating-an-extension-that-extends-QueryPage-tf454935…
Sent from the Wikipedia Developers mailing list archive at
Nabble.com.