equal
deleted
inserted
replaced
325 enabled = ' . $enable . ' |
325 enabled = ' . $enable . ' |
326 WHERE theme_id = \'' . $db->escape($theme_data['theme_id']) . '\';'); |
326 WHERE theme_id = \'' . $db->escape($theme_data['theme_id']) . '\';'); |
327 if ( !$q ) |
327 if ( !$q ) |
328 $db->die_json(); |
328 $db->die_json(); |
329 |
329 |
330 if ( $theme_data['make_default'] ) |
330 if ( $theme_data['make_default'] && !defined('ENANO_DEMO_MODE') ) |
331 { |
331 { |
332 setConfig('theme_default', $theme_data['theme_id']); |
332 setConfig('theme_default', $theme_data['theme_id']); |
333 } |
333 } |
334 |
334 |
335 $cache->purge('themes'); |
335 $cache->purge('themes'); |