]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/OpenID/User_openid_trustroot.php
Fix bad i18n function call
[quix0rs-gnu-social.git] / plugins / OpenID / User_openid_trustroot.php
index 0b411b8f7f11ba9e10cfa932cb58407809dc0f18..69e0a3f3e0eb6485bd93462926bb4c4fffffb9aa 100644 (file)
@@ -2,7 +2,10 @@
 /**
  * Table Definition for user_openid_trustroot
  */
-require_once INSTALLDIR.'/classes/Memcached_DataObject.php';
+
+if (!defined('STATUSNET')) {
+    exit(1);
+}
 
 class User_openid_trustroot extends Memcached_DataObject
 {
@@ -42,6 +45,11 @@ class User_openid_trustroot extends Memcached_DataObject
     }
 
     function keys()
+    {
+        return array_keys($this->keyTypes());
+    }
+
+    function keyTypes()
     {
         return array('trustroot' => 'K', 'user_id' => 'K');
     }