improvement: dynamically activate all installed themes (with checks on

parent availability and so on).

git-svn-id: http://piwigo.org/svn/trunk@5340 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
plegall
2010-03-25 10:08:33 +00:00
parent d19e8ef859
commit 663be9ca63
4 changed files with 26 additions and 4 deletions
+15
View File
@@ -123,4 +123,19 @@ function available_engines()
return $engines;
}
/**
* Automatically activate all themes in the "themes" directory.
*
* @return void
*/
function activate_all_themes()
{
include_once(PHPWG_ROOT_PATH.'admin/include/themes.class.php');
$themes = new themes();
foreach ($themes->fs_themes as $theme_id => $fs_theme)
{
$themes->perform_action('activate', $theme_id);
}
}
?>