function compress_framework_css() { compress::web_files(); }
foreach ($rem_files as $target) { unset($out); exec("rm -rf {$target} 2>&1", $out, $ret); if ($ret != 0) { out(sprintf(_("an error occured removing the packaged file/directory: %s"), $target)); } else { out(sprintf(_("file/directory: %s removed successfully"), $target)); } } //This seems like a really freaky race condition because we have previously called the out function //But I digress, just reinclude the file if (!$amp_conf['DISABLE_CSS_AUTOGEN'] && !function_exists('compress_framework_css')) { if (!class_exists('compress')) { require_once $dirname . '/libraries/compress.class.php'; } compress::web_files(); } if (!$amp_conf['DISABLE_CSS_AUTOGEN'] && function_exists('compress_framework_css')) { compress_framework_css(); } if (!file_exists(dirname(__FILE__) . '/module.xml')) { out(_('Cant Find Framework XML')); return false; } //This is also run in moduleadmin class //why? well because in developer mode this file doesnt exist, only the //module.xml exists so we have to do it in multiple places. yaaaaay :-| $fwxml = simplexml_load_file(dirname(__FILE__) . '/module.xml'); //setversion to whatever is in framework.xml forever for here on out. $fwver = (string) $fwxml->version; if (!empty($fwver)) {