Index: branches/5.0.x/core/units/helpers/skin_helper.php =================================================================== diff -u -N -r12306 -r12637 --- branches/5.0.x/core/units/helpers/skin_helper.php (.../skin_helper.php) (revision 12306) +++ branches/5.0.x/core/units/helpers/skin_helper.php (.../skin_helper.php) (revision 12637) @@ -165,9 +165,9 @@ /** * Returns full path to primary admin skin using given or last compiled date * - * @param unknown_type $url - * @param unknown_type $compile_date - * @return unknown + * @param string $url + * @param int $compile_date + * @return string */ function getSkinPath($url = false, $compile_date = null) { @@ -205,4 +205,21 @@ return $last_compiled; } + + /** + * Deletes all compiled versions of all skins + * + */ + function deleteCompiled() + { + $dh = dir($this->_getStylesheetPath() . DIRECTORY_SEPARATOR); + + while (false !== ($file = $dh->read())) { + if ( preg_match('/admin-(.*)-([\d]+).css/', $file, $rets) ) { + unlink($dh->path . $file); + } + } + + $dh->close(); + } } \ No newline at end of file Index: branches/5.0.x/core/units/admin/admin_events_handler.php =================================================================== diff -u -N -r12569 -r12637 --- branches/5.0.x/core/units/admin/admin_events_handler.php (.../admin_events_handler.php) (revision 12569) +++ branches/5.0.x/core/units/admin/admin_events_handler.php (.../admin_events_handler.php) (revision 12637) @@ -1,6 +1,6 @@ Conn->Query($sql); + $skin_helper =& $this->Application->recallObject('SkinHelper'); + /* @var $skin_helper SkinHelper */ + + $skin_helper->deleteCompiled(); + if (isset($this->Application->Memcached)) { $this->Application->Memcached->delete('master:config_files'); $this->Application->Memcached->delete('master:configs_parsed');