17 require_once SQ_INCLUDE_PATH.
'/asset_management.inc';
46 'description' =>
'The thesaurus from which tags may be selected',
49 'restrict_tag_source' => Array(
52 'parameters' => Array(
53 'allow_empty' => FALSE,
55 'description' =>
'Determines whether or not tags are restricted to a single thesaurus',
75 if (!parent::_upgrade($current_version))
return FALSE;
77 if (version_compare($current_version,
'0.2',
'<')) {
78 pre_echo(
'UPGRADING TAG MANAGER - FROM VERSION '.$current_version);
81 $tag_manager = $GLOBALS[
'SQ_SYSTEM']->getTagManager();
82 if ($tag_manager->attr(
'thesaurus')) {
83 $tag_manager->setAttrValue(
'restrict_tag_source', TRUE);
84 $tag_manager->saveAttributes();