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