Fix for PHP spewing notices from commit a373d07ae0

Please test with error_reporting set to E_ALL!

Classnames and function names aren't first-class objects in PHP and need to be referenced as strings here. :(
This commit is contained in:
Brion Vibber 2009-11-16 15:36:30 -08:00
parent a99198ba94
commit 6f9b909211
3 changed files with 4 additions and 4 deletions

View File

@ -204,7 +204,7 @@ abstract class AuthenticationPlugin extends Plugin
function onCheckSchema() {
$schema = Schema::get();
$schema->ensureDataObject(User_username);
$schema->ensureDataObject('User_username');
return true;
}

View File

@ -281,8 +281,8 @@ class OpenIDPlugin extends Plugin
function onCheckSchema() {
$schema = Schema::get();
$schema->ensureDataObject(User_openid);
$schema->ensureDataObject(User_openid_trustroot);
$schema->ensureDataObject('User_openid');
$schema->ensureDataObject('User_openid_trustroot');
return true;
}

View File

@ -48,7 +48,7 @@ class UserFlagPlugin extends Plugin
$schema = Schema::get();
// For storing user-submitted flags on profiles
$schema->ensureDataObject(User_flag_profile);
$schema->ensureDataObject('User_flag_profile');
return true;
}