* $Date:: $ *
* $Tag:: 0.2.1-FINAL $ *
* $Author:: $ *
- * Needs to be in all Files and every File needs "svn propset *
- * svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
* Copyright (c) 2009, 2010 by Mailer Developer Team *
$sql = "UPDATE `{?_MYSQL_PREFIX?}_themes` SET `theme_active`='Y' WHERE `id`=%s LIMIT 1";
}
$OUT = '{--ADMIN_THEMES_UPDATED--}';
- } elseif (isFormSent('del')) {
+ } elseif (isFormSent('delete')) {
// Delete themes
$sql = "DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_themes` WHERE `id`=%s LIMIT 1";
$OUT = '{--ADMIN_THEMES_DELETED--}';
// Load theme in test mode
loadInclude($inc);
+ // Copy data from theme to content
+ $content['theme_url'] = $GLOBALS['theme_data']['url'];
+
// Is the loaded theme name != current theme name?
$content['link'] = $content['theme_path'];
if ($content['theme_path'] != getCurrentTheme()) $content['link'] = '<a href="{%url=modules.php?module=admin&what=theme_edit&default_theme=' . $content['theme_path'] . '%}" title="{--ADMIN_SET_AS_NEW_THEME--}">' . $content['theme_path'] . '</a>';