The FlaggedRevs extension uses a query page. I suppose you could mimic that.
-Aaron Schulz
Date: Mon, 1 Oct 2007 12:22:37 -0400
From: travis(a)wikihow.com
To: wikitech-l(a)lists.wikimedia.org
Subject: [Wikitech-l] creating an extension that extends QueryPage
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
_________________________________________________________________
Discover the new Windows Vista