rename class
parent
6fbd4b4866
commit
3f42099051
|
@ -50,7 +50,7 @@ class ReservedWhiteList extends dcSpamFilter
|
||||||
$throw = false;
|
$throw = false;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$wlc = new Core();
|
$wlc = new Utils();
|
||||||
|
|
||||||
if (true === $wlc->isReserved($author, $email)) {
|
if (true === $wlc->isReserved($author, $email)) {
|
||||||
$status = 'reserved name';
|
$status = 'reserved name';
|
||||||
|
@ -75,7 +75,7 @@ class ReservedWhiteList extends dcSpamFilter
|
||||||
|
|
||||||
public function gui(string $url): string
|
public function gui(string $url): string
|
||||||
{
|
{
|
||||||
$wlc = new Core();
|
$wlc = new Utils();
|
||||||
$comments = [];
|
$comments = [];
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -49,7 +49,7 @@ class UnmoderatedWhiteList extends dcSpamFilter
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$wlc = new Core();
|
$wlc = new Utils();
|
||||||
if ($wlc->isUnmoderated($email)) {
|
if ($wlc->isUnmoderated($email)) {
|
||||||
$status = 'unmoderated';
|
$status = 'unmoderated';
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ class UnmoderatedWhiteList extends dcSpamFilter
|
||||||
|
|
||||||
public function gui(string $url): string
|
public function gui(string $url): string
|
||||||
{
|
{
|
||||||
$wlc = new Core();
|
$wlc = new Utils();
|
||||||
$posts = $comments = [];
|
$posts = $comments = [];
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -24,7 +24,7 @@ use dcUtils;
|
||||||
* @brief White list filters methods
|
* @brief White list filters methods
|
||||||
* @since 2.6
|
* @since 2.6
|
||||||
*/
|
*/
|
||||||
class Core
|
class Utils
|
||||||
{
|
{
|
||||||
public $con;
|
public $con;
|
||||||
public $blog;
|
public $blog;
|
||||||
|
@ -36,7 +36,7 @@ class Core
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->con = dcCore::app()->con;
|
$this->con = dcCore::app()->con;
|
||||||
$this->blog = dcCore::app()->con->escape(dcCore::app()->blog->id);
|
$this->blog = dcCore::app()->con->escapeStr((string) dcCore::app()->blog->id);
|
||||||
$this->settings = dcCore::app()->blog->settings->get(My::id());
|
$this->settings = dcCore::app()->blog->settings->get(My::id());
|
||||||
$this->unmoderated = self::decode($this->settings->get('unmoderated'));
|
$this->unmoderated = self::decode($this->settings->get('unmoderated'));
|
||||||
$this->reserved = self::decode($this->settings->get('reserved'));
|
$this->reserved = self::decode($this->settings->get('reserved'));
|
||||||
|
|
Loading…
Reference in New Issue