From a7e3f88262b677c81e4f0f023fea0540cc4b47a4 Mon Sep 17 00:00:00 2001 From: Platonides Date: Wed, 19 Sep 2018 00:56:34 +0200 Subject: [PATCH] Method name --- AuthWMESbyDB.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/AuthWMESbyDB.php b/AuthWMESbyDB.php index bb3fda8..77d7279 100644 --- a/AuthWMESbyDB.php +++ b/AuthWMESbyDB.php @@ -78,7 +78,7 @@ class AuthWMESbyDB extends \LimeSurvey\PluginManager\AuthPluginBase { $oEvent = $this->getEvent(); // Get configuration settings: - if($this->addWpDb()) + if($this->addWmesDb()) { $oEvent->set('success', true); }else{ @@ -90,7 +90,7 @@ class AuthWMESbyDB extends \LimeSurvey\PluginManager\AuthPluginBase public function beforeLogin() { $oEvent = $this->getEvent(); - if ($this->addWpDb() && $this->get('authwp_default')) + if ($this->addWmesDb() && $this->get('authwp_default')) { $this->getEvent()->set('default', get_class($this)); } @@ -103,7 +103,7 @@ class AuthWMESbyDB extends \LimeSurvey\PluginManager\AuthPluginBase }else{ $tag="li"; } - if($this->addWpDb()){ + if($this->addWmesDb()){ $this->getEvent()->getContent($this) ->addContent(CHtml::tag($tag, array(), "")) ->addContent(CHtml::tag($tag, array(), "")); @@ -192,7 +192,7 @@ class AuthWMESbyDB extends \LimeSurvey\PluginManager\AuthPluginBase **/ private function getWmesDbUser($sUserName,$sUserPass) { - if($this->addWpDb()) + if($this->addWmesDb()) { $aUser = Yii::app()->wmesdb->createCommand() ->select('user_login,user_pass,user_email,user_level') @@ -216,7 +216,7 @@ class AuthWMESbyDB extends \LimeSurvey\PluginManager\AuthPluginBase /** * Add the db from plugin configuration in new Yii db **/ - private function addWDb() + private function addWmesDb() { static $bValid=NULL; if(!is_null($bValid)) -- 2.30.2