We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 6f9b9092 authored by Brion Vibber's avatar Brion Vibber

Fix for PHP spewing notices from commit a373d07a

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. :(
parent a99198ba
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment