Changeset 5340 for trunk/admin
- Timestamp:
- Mar 25, 2010, 11:08:33 AM (14 years ago)
- Location:
- trunk/admin/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/include/functions_install.inc.php
r5239 r5340 124 124 return $engines; 125 125 } 126 127 /** 128 * Automatically activate all themes in the "themes" directory. 129 * 130 * @return void 131 */ 132 function activate_all_themes() 133 { 134 include_once(PHPWG_ROOT_PATH.'admin/include/themes.class.php'); 135 $themes = new themes(); 136 foreach ($themes->fs_themes as $theme_id => $fs_theme) 137 { 138 $themes->perform_action('activate', $theme_id); 139 } 140 } 126 141 ?> -
trunk/admin/include/themes.class.php
r5259 r5340 79 79 { 80 80 // the theme is already active 81 break; 82 } 83 84 if ('default' == $theme_id) 85 { 86 // you can't activate the "default" theme 81 87 break; 82 88 }
Note: See TracChangeset
for help on using the changeset viewer.