Le mirroring des dépôts vers Github est maintenant natif dans Gitlab (et donc Framagit). Merci de passer à la fonction native pour que nous puissions couper notre solution maison. Détails sur https://docs.gitlab.com/ee/workflow/repository_mirroring.html#pushing-to-a-remote-repository (pensez à supprimer le webhook de notre solution maison).

Commit 7bf074ec by Denis Chenu

[dev] Rename some private function

parent 2d7c5552
......@@ -354,7 +354,7 @@ class sendMailCron extends PluginBase
public function sendMailByCron()
......@@ -364,8 +364,8 @@ class sendMailCron extends PluginBase
"active = 'Y' AND (startdate <= :now1 OR startdate IS NULL) AND (expires >= :now2 OR expires IS NULL)",
':now1' => self::dateShifted(date("Y-m-d H:i:s")),
':now2' => self::dateShifted(date("Y-m-d H:i:s"))
':now1' => self::_dateShifted(date("Y-m-d H:i:s")),
':now2' => self::_dateShifted(date("Y-m-d H:i:s"))
// Unsure we need whole ... to be fixed
......@@ -397,7 +397,7 @@ class sendMailCron extends PluginBase
/* By day of week */
$dayOfWeekToSend=$this->getSetting('dayOfWeekToSend','Survey', $iSurvey,"[]");
$todayNum=(string)self::dateShifted(date("Y-m-d H:i:s"),"N");
$todayNum=(string)self::_dateShifted(date("Y-m-d H:i:s"),"N");
if(!empty($aDayOfWeekToSend) && !in_array($todayNum,$aDayOfWeekToSend)){
$this->sendMailCronLog("sendMailByCron deactivated for {$iSurvey} for today",1);
......@@ -459,7 +459,7 @@ class sendMailCron extends PluginBase
private static function dateShifted($date, $dformat="Y-m-d H:i:s")
private static function _dateShifted($date, $dformat="Y-m-d H:i:s")
......@@ -473,7 +473,7 @@ class sendMailCron extends PluginBase
// We need a lot of config
private function setConfigs()
private function _setConfigs()
$aDefaultConfigs = require(Yii::app()->basePath. DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'config-defaults.php');
foreach($aDefaultConfigs as $sConfig=>$defaultConfig)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment