Replace more self:: references in closures for PHP 5.3 [MAILPOET-821]
This commit is contained in:
@ -232,7 +232,7 @@ class Segment extends Model {
|
|||||||
|
|
||||||
static function bulkTrash($orm) {
|
static function bulkTrash($orm) {
|
||||||
$count = parent::bulkAction($orm, function($ids) {
|
$count = parent::bulkAction($orm, function($ids) {
|
||||||
parent::rawExecute(join(' ', array(
|
Segment::rawExecute(join(' ', array(
|
||||||
'UPDATE `' . Segment::$_table . '`',
|
'UPDATE `' . Segment::$_table . '`',
|
||||||
'SET `deleted_at` = NOW()',
|
'SET `deleted_at` = NOW()',
|
||||||
'WHERE `id` IN ('.rtrim(str_repeat('?,', count($ids)), ',').')',
|
'WHERE `id` IN ('.rtrim(str_repeat('?,', count($ids)), ',').')',
|
||||||
|
@ -729,7 +729,7 @@ class Subscriber extends Model {
|
|||||||
|
|
||||||
static function bulkTrash($orm) {
|
static function bulkTrash($orm) {
|
||||||
$count = parent::bulkAction($orm, function($subscriber_ids) {
|
$count = parent::bulkAction($orm, function($subscriber_ids) {
|
||||||
self::rawExecute(join(' ', array(
|
Subscriber::rawExecute(join(' ', array(
|
||||||
'UPDATE `' . Subscriber::$_table . '`',
|
'UPDATE `' . Subscriber::$_table . '`',
|
||||||
'SET `deleted_at` = NOW()',
|
'SET `deleted_at` = NOW()',
|
||||||
'WHERE `id` IN ('.
|
'WHERE `id` IN ('.
|
||||||
|
Reference in New Issue
Block a user