X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FAccountManager%2FAccountManagerPlugin.php;h=768f71510f24c334752c9e223042eaf8008dd50e;hb=f2bfcdc2c1d7bc4634bb06285380884a57075759;hp=3b399af8c8fdf11ac73c9ecf19e52fdca8af624c;hpb=c97048d01bea468e0cf8865b60c3c250b4515c39;p=quix0rs-gnu-social.git diff --git a/plugins/AccountManager/AccountManagerPlugin.php b/plugins/AccountManager/AccountManagerPlugin.php index 3b399af8c8..768f71510f 100644 --- a/plugins/AccountManager/AccountManagerPlugin.php +++ b/plugins/AccountManager/AccountManagerPlugin.php @@ -40,26 +40,13 @@ class AccountManagerPlugin extends Plugin parent::__construct(); } - function onAutoload($cls) - { - switch ($cls) - { - case 'AccountManagementControlDocumentAction': - require_once(INSTALLDIR.'/plugins/AccountManager/AccountManagementControlDocumentAction.php'); - return false; - case 'AccountManagementSessionStatusAction': - require_once(INSTALLDIR.'/plugins/AccountManager/AccountManagementSessionStatusAction.php'); - return false; - } - } - /** * Hook for RouterInitialized event. * - * @param Net_URL_Mapper $m path-to-action mapper + * @param URLMapper $m path-to-action mapper * @return boolean hook return */ - function onRouterInitialized($m) + public function onRouterInitialized(URLMapper $m) { // Discovery actions $m->connect('main/amcd.json', @@ -70,8 +57,8 @@ class AccountManagerPlugin extends Plugin } function onStartHostMetaLinks(&$links) { - $links[] = array('rel' => AccountManagerPlugin::AM_REL, - 'href' => common_local_url('AccountManagementControlDocument')); + $links[] = new XML_XRD_Element_Link(AccountManagerPlugin::AM_REL, + common_local_url('AccountManagementControlDocument')); } function onStartShowHTML($action) @@ -100,10 +87,10 @@ class AccountManagerPlugin extends Plugin } } - function onPluginVersion(&$versions) + function onPluginVersion(array &$versions) { $versions[] = array('name' => 'AccountManager', - 'version' => STATUSNET_VERSION, + 'version' => GNUSOCIAL_VERSION, 'author' => 'Craig Andrews', 'homepage' => 'http://status.net/wiki/Plugin:AccountManager', 'rawdescription' =>