瀏覽代碼

laboiteapain => opendistrib

refactoring
Guillaume Bourgeois 5 年之前
父節點
當前提交
d34fce0204
共有 4 個文件被更改,包括 5 次插入5 次删除
  1. +1
    -1
      backend/config/params.php
  2. +2
    -2
      backend/controllers/CronController.php
  3. +1
    -1
      backend/controllers/UserController.php
  4. +1
    -1
      backend/models/MailForm.php

+ 1
- 1
backend/config/params.php 查看文件

@@ -36,5 +36,5 @@ termes.
*/

return [
'adminEmail' => 'contact@laboiteapain.net',
'adminEmail' => 'contact@opendistrib.net',
];

+ 2
- 2
backend/controllers/CronController.php 查看文件

@@ -133,11 +133,11 @@ class CronController extends BackendController
$arrayLastnameschecked = [];

$users = User::searchAll([
'user_etablissement.id_etablissement' => 1
'user_producer.id_producer' => 1
]) ;

foreach ($users as $u) {
if ($u->email != 'boulanger@laboiteapain.net') {
if ($u->email != 'producer@opendistrib.net') {
do {
$indexLastname = rand(0, count($arrayLastnames) - 1);
$indexName = rand(0, count($arrayNames) - 1);

+ 1
- 1
backend/controllers/UserController.php 查看文件

@@ -125,7 +125,7 @@ class UserController extends BackendController
$model->generateAuthKey();
$model->username = $model->email;
if (!strlen($model->email)) {
$model->username = 'inconnu@laboiteapain.net';
$model->username = 'inconnu@opendistrib.net';
}
$model->save();

+ 1
- 1
backend/models/MailForm.php 查看文件

@@ -93,7 +93,7 @@ class MailForm extends Model
foreach($usersArray as $user) {
$body['Messages'][] = [
'From' => [
'Email' => $producer->slug.'@laboiteapain.net',
'Email' => $producer->slug.'@opendistrib.net',
'Name' => $producer->name
],
'To' => [

Loading…
取消
儲存