]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix for PHP spewing notices from commit a373d07ae00b878f47970f2e4a7d86c6ec3a65cf
authorBrion Vibber <brion@pobox.com>
Mon, 16 Nov 2009 23:36:30 +0000 (15:36 -0800)
committerBrion Vibber <brion@pobox.com>
Mon, 16 Nov 2009 23:36:30 +0000 (15:36 -0800)
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. :(

plugins/Authentication/AuthenticationPlugin.php
plugins/OpenID/OpenIDPlugin.php
plugins/UserFlag/UserFlagPlugin.php

index a80da901cf4954b4daa4753ae2a5c620255baded..1b9084187b4369d3a16b928c435f299f7912fc57 100644 (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;
     }
 
index 88e23ea3e5611308972fb8a1864633785499b9fd..6dd8a3f5a3bbc174ba4f8d5bbc1db3457831ac65 100644 (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;
     }
 
index df7eac7a2b521c3b51e4a533c0614c702fdec03b..b4d48c74bcf49a471344dd9b23d2cbc8f2a2551f 100644 (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;
     }