X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FLdapAuthorization%2FLdapAuthorizationPlugin.php;h=9a666d15518030a267b7641ddbfcfb5717d3665b;hb=814696c202af68870b7efd6122c7bdfc6992874c;hp=97103d158e8c2e0c689cb0f0d31b8abe228c00f2;hpb=68a5fba24847991330d1a31b3c3f875c5d02cb6e;p=quix0rs-gnu-social.git diff --git a/plugins/LdapAuthorization/LdapAuthorizationPlugin.php b/plugins/LdapAuthorization/LdapAuthorizationPlugin.php index 97103d158e..9a666d1551 100644 --- a/plugins/LdapAuthorization/LdapAuthorizationPlugin.php +++ b/plugins/LdapAuthorization/LdapAuthorizationPlugin.php @@ -22,7 +22,7 @@ * @category Plugin * @package StatusNet * @author Craig Andrews - * @copyright 2009 Craig Andrews http://candrews.integralblue.com + * @copyright 2009 Free Software Foundation, Inc http://www.fsf.org * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 * @link http://status.net/ */ @@ -38,10 +38,12 @@ class LdapAuthorizationPlugin extends AuthorizationPlugin function onInitializePlugin(){ if(!isset($this->provider_name)){ - throw new Exception("provider_name must be set. Use the provider_name from the LDAP Authentication plugin."); + // TRANS: Exception thrown when initialising the LDAP Auth plugin fails because of an incorrect configuration. + throw new Exception(_m('provider_name must be set. Use the provider_name from the LDAP Authentication plugin.')); } if(!isset($this->uniqueMember_attribute)){ - throw new Exception("uniqueMember_attribute must be set."); + // TRANS: Exception thrown when initialising the LDAP Auth plugin fails because of an incorrect configuration. + throw new Exception(_m('uniqueMember_attribute must be set.')); } $this->ldapCommon = new LdapCommon(get_object_vars($this)); } @@ -54,6 +56,8 @@ class LdapAuthorizationPlugin extends AuthorizationPlugin require_once(INSTALLDIR.'/plugins/LdapCommon/LdapCommon.php'); return false; } + + return parent::onAutoload($cls); } //---interface implementation---// @@ -117,10 +121,11 @@ class LdapAuthorizationPlugin extends AuthorizationPlugin function onPluginVersion(&$versions) { $versions[] = array('name' => 'LDAP Authorization', - 'version' => STATUSNET_VERSION, + 'version' => GNUSOCIAL_VERSION, 'author' => 'Craig Andrews', 'homepage' => 'http://status.net/wiki/Plugin:LdapAuthorization', 'rawdescription' => + // TRANS: Plugin description. _m('The LDAP Authorization plugin allows for StatusNet to handle authorization through LDAP.')); return true; }