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:
parent
a99198ba94
commit
6f9b909211
|
@ -204,7 +204,7 @@ abstract class AuthenticationPlugin extends Plugin
|
|||
|
||||
function onCheckSchema() {
|
||||
$schema = Schema::get();
|
||||
$schema->ensureDataObject(User_username);
|
||||
$schema->ensureDataObject('User_username');
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user