X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=plugins%2FDomainStatusNetwork%2FDomainStatusNetworkPlugin.php;h=e79a445f2071ddb0bbb40653b3c4d8d555cb94a8;hb=c97048d01bea468e0cf8865b60c3c250b4515c39;hp=5debb5ef76984b79498f01c79d67809c3cecbf66;hpb=ddead1e611034ccf45e4b249bb4f5457fd573cba;p=quix0rs-gnu-social.git diff --git a/plugins/DomainStatusNetwork/DomainStatusNetworkPlugin.php b/plugins/DomainStatusNetwork/DomainStatusNetworkPlugin.php index 5debb5ef76..e79a445f20 100644 --- a/plugins/DomainStatusNetwork/DomainStatusNetworkPlugin.php +++ b/plugins/DomainStatusNetwork/DomainStatusNetworkPlugin.php @@ -4,7 +4,7 @@ * Copyright (C) 2011, StatusNet, Inc. * * One status_network per email domain - * + * * PHP version 5 * * This program is free software: you can redistribute it and/or modify @@ -50,7 +50,6 @@ require_once $_dir . '/extlib/regDomain.inc.php'; * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0 * @link http://status.net/ */ - class DomainStatusNetworkPlugin extends Plugin { static $_thetree = null; @@ -60,7 +59,7 @@ class DomainStatusNetworkPlugin extends Plugin // For various reasons this gets squished global $tldTree; - + if (empty($tldTree)) { if (!empty(self::$_thetree)) { $tldTree = self::$_thetree; @@ -85,7 +84,7 @@ class DomainStatusNetworkPlugin extends Plugin foreach ($tags as $tag) { if (strncmp($tag, 'domain=', 7) == 0) { $domain = substr($tag, 7); - $this->log("Setting email domain to {$domain}"); + $this->log(LOG_INFO, "Setting email domain to {$domain}"); common_config_append('email', 'whitelist', $domain); } } @@ -191,6 +190,7 @@ class DomainStatusNetworkPlugin extends Plugin 'author' => 'Evan Prodromou', 'homepage' => 'http://status.net/wiki/Plugin:DomainStatusNetwork', 'rawdescription' => + // TRANS: Plugin description. _m('A plugin that maps a single status_network to an email domain.')); return true; }