[wp-hackers] Activate Action not Working?

Computer Guru computerguru at neosmart.net
Fri Apr 27 07:54:01 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm in the latest trunk, and I can't seem to get add_action(activate_*)
to work properly....

/////////////////////////////////////////////
class DonationTracker() {
	function DonationTracke() {
		add_action("activate_DonationTracker.php", "self::init_database");
//Tried lowercase too
	}
	function init_database(){
		...
	}
}

$DonationTracker =& new DonationTracker();
/////////////////////////////////////////////

Calling
self::init_database();

by itself in the constructor works just fine.
I tried changing the action to activate_donationtracker.php and also
tried changing the function from self::init_database to
DonationTracker::init_database and this->init_database() to no avail.

Any clues?

- --
Computer Guru
NeoSmart Technologies
http://neosmart.net/blog/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGMawY3SICh4XKUt0RAvE8AJ9r5OA5opGIcx5njYbraVi9hEVZGwCfddhB
TPbDS4XLTRbZUyVFLzmmUDA=
=HgY/
-----END PGP SIGNATURE-----


More information about the wp-hackers mailing list