Changeset 14206


Ignore:
Timestamp:
Apr 17, 2012, 4:09:05 PM (8 years ago)
Author:
flop25
Message:

feature:2482
during upgrade, deactivate template-extensions : in practice put an empty array for the config param. extents_for_templates

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions_upgrade.php

    r13467 r14206  
    172172}
    173173
     174// Deactivate all templates
     175function deactivate_templates()
     176{
     177  $query = '
     178  UPDATE '.PREFIX_TABLE.'config
     179    SET value = \''. array() .'\'
     180  WHERE param = \'extents_for_templates\';';
     181}
     182
    174183// Check access rights
    175184function check_upgrade_access_rights()
  • trunk/upgrade.php

    r13956 r14206  
    339339
    340340    deactivate_non_standard_themes();
     341    deactivate_templates();
    341342
    342343    $page['upgrade_end'] = get_moment();
Note: See TracChangeset for help on using the changeset viewer.