Thanks for the info. It also looks like if you declare the class inside the function that's appended to wgExtensionFunctions, it seems to work too. Weird.
Thanks.
On 10/1/07, Voice of All jschulz_4587@msn.com wrote:
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@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-tf4549357... Sent from the Wikipedia Developers mailing list archive at Nabble.com.
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/wikitech-l