1
1
Fork 0

Rename DBA::affected_rows to DBA::affectedRows

This commit is contained in:
Hypolite Petovan 2018-07-20 21:58:15 -04:00
parent d3144e2837
commit e42cf4d4fc
3 changed files with 4 additions and 4 deletions

View file

@ -704,7 +704,7 @@ class DBA
*
* @return int Number of rows
*/
public static function affected_rows() {
public static function affectedRows() {
return self::$affected_rows;
}

View file

@ -809,7 +809,7 @@ class Item extends BaseObject
}
// When there is no content for the "old" item table, this will count the fetched items
$rows = DBA::affected_rows();
$rows = DBA::affectedRows();
while ($item = DBA::fetch($items)) {

View file

@ -52,12 +52,12 @@ class Expire
logger('Deleting orphaned item activities - start', LOGGER_DEBUG);
$condition = ["NOT EXISTS (SELECT `iaid` FROM `item` WHERE `item`.`iaid` = `item-activity`.`id`)"];
DBA::delete('item-activity', $condition);
logger('Orphaned item activities deleted: ' . DBA::affected_rows(), LOGGER_DEBUG);
logger('Orphaned item activities deleted: ' . DBA::affectedRows(), LOGGER_DEBUG);
logger('Deleting orphaned item content - start', LOGGER_DEBUG);
$condition = ["NOT EXISTS (SELECT `icid` FROM `item` WHERE `item`.`icid` = `item-content`.`id`)"];
DBA::delete('item-content', $condition);
logger('Orphaned item content deleted: ' . DBA::affected_rows(), LOGGER_DEBUG);
logger('Orphaned item content deleted: ' . DBA::affectedRows(), LOGGER_DEBUG);
// make this optional as it could have a performance impact on large sites
if (intval(Config::get('system', 'optimize_items'))) {