18 require_once SQ_INCLUDE_PATH.
'/asset_management.inc';
40 Asset_Management::__construct($pm);
56 $res = parent::_upgrade($current_version);
58 if (version_compare($current_version,
'0.2',
'<')) {
59 pre_echo(
'UPGRADING DESIGN CSS CUSTOMISATION FROM v < 0.2');
62 $design_ids = $GLOBALS[
'SQ_SYSTEM']->am->getTypeAssetids(
'design_css_customisation', TRUE, TRUE);
63 foreach ($design_ids as $design_id => $type) {
64 $design = $GLOBALS[
'SQ_SYSTEM']->am->getAsset($design_id, $type[
'type_code']);
65 $design->setAttrValue(
'static_url_versioning', FALSE);
66 $design->saveAttributes();
67 $GLOBALS[
'SQ_SYSTEM']->am->forgetAsset($design);