mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-12-03 21:54:07 +09:00
Merge pull request #682 from samapraku/master
Remove client api injection into massmailer email rendering
This commit is contained in:
3 files changed
+8
-15
No files matched your search
@@ -128,15 +128,13 @@ class Service implements \Box\InjectionAwareInterface
|
||||
|
||||
$vars = array();
|
||||
$vars['c'] = $clientArr;
|
||||
$vars['_client_id'] = $client->id;
|
||||
$vars['_tpl'] = $model->subject;
|
||||
$ps = $systemService->renderString($vars['_tpl'], true, $vars);
|
||||
$ps = $systemService->renderString($vars['_tpl'], false, $vars);
|
||||
|
||||
$vars = array();
|
||||
$vars['c'] = $clientArr;
|
||||
$vars['_client_id'] = $client->id;
|
||||
$vars['_tpl'] = $model->content;
|
||||
$pc = $systemService->renderString($vars['_tpl'], true, $vars);
|
||||
$pc = $systemService->renderString($vars['_tpl'], false, $vars);
|
||||
|
||||
return array($ps, $pc);
|
||||
}
|
||||
@@ -171,11 +169,6 @@ class Service implements \Box\InjectionAwareInterface
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
By: Samuel A.
|
||||
Modified: 07.07.2019
|
||||
Log email to database
|
||||
*/
|
||||
$mod = $this->di['mod']('email');
|
||||
$settings = $mod->getConfig();
|
||||
|
||||
|
||||
@@ -52,8 +52,8 @@ class Service
|
||||
}
|
||||
|
||||
if(NULL !== $search) {
|
||||
$sql .= ' AND (m.title LIKE %:search% OR m.content LIKE %:search%)';
|
||||
$params['search'] = $search;
|
||||
$sql .= ' AND (m.title LIKE :search OR m.content LIKE :search)';
|
||||
$params['search'] = '%'.$search.'%';
|
||||
}
|
||||
|
||||
$sql .= ' ORDER BY created_at DESC';
|
||||
|
||||
@@ -516,8 +516,8 @@ class Service implements InjectionAwareInterface
|
||||
}
|
||||
|
||||
if ($search) {
|
||||
$sql .= ' AND code like %:search%';
|
||||
$params['search'] = $search;
|
||||
$sql .= ' AND code like :search';
|
||||
$params['search'] = '%'.$search.'%';
|
||||
}
|
||||
|
||||
switch ($status) {
|
||||
@@ -689,8 +689,8 @@ class Service implements InjectionAwareInterface
|
||||
}
|
||||
|
||||
if ($search) {
|
||||
$sql .= ' AND m.title LIKE %:search%';
|
||||
$params[':search'] = $search;
|
||||
$sql .= ' AND m.title LIKE :search';
|
||||
$params[':search'] = '%'.$search.'%';
|
||||
}
|
||||
|
||||
$sql .= ' ORDER BY m.priority ASC';
|
||||
|
||||
Reference in new issue
Block a user