Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/units/helpers/themes_helper.php
Show First 20 Lines • Show All 546 Lines • ▼ Show 20 Line(s) | |||||
foreach ($theme_ids as $theme_id) { | foreach ($theme_ids as $theme_id) { | ||||
// increment serial of deleted themes | // increment serial of deleted themes | ||||
$this->Application->incrementCacheSerial('theme', $theme_id); | $this->Application->incrementCacheSerial('theme', $theme_id); | ||||
} | } | ||||
$this->Application->incrementCacheSerial('theme'); | $this->Application->incrementCacheSerial('theme'); | ||||
$this->Application->incrementCacheSerial('theme-file'); | $this->Application->incrementCacheSerial('theme-file'); | ||||
/** @var MinifyHelper $minify_helper */ | |||||
$minify_helper = $this->Application->recallObject('MinifyHelper'); | |||||
$minify_helper->delete(); | |||||
} | } | ||||
/** | /** | ||||
* Deletes themes with ids passed from db | * Deletes themes with ids passed from db | ||||
* | * | ||||
* @param Array $theme_ids | * @param Array $theme_ids | ||||
*/ | */ | ||||
function deleteThemes($theme_ids) | function deleteThemes($theme_ids) | ||||
▲ Show 20 Lines • Show All 87 Lines • Show Last 20 Lines |