From: Roland Häder Date: Thu, 2 Sep 2010 12:24:03 +0000 (+0000) Subject: Fix for missing array element 'url' X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f4dc6da7feace372175a07fcc437a7ebcb49f0be;p=mailer.git Fix for missing array element 'url' --- diff --git a/inc/modules/admin/what-theme_edit.php b/inc/modules/admin/what-theme_edit.php index ce99c5fdca..de3f19ad78 100644 --- a/inc/modules/admin/what-theme_edit.php +++ b/inc/modules/admin/what-theme_edit.php @@ -121,6 +121,9 @@ if (!SQL_HASZERONUMS($result)) { // 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'] = '' . $content['theme_path'] . ''; diff --git a/inc/modules/admin/what-theme_import.php b/inc/modules/admin/what-theme_import.php index 103e92c37a..3a9bed37d0 100644 --- a/inc/modules/admin/what-theme_import.php +++ b/inc/modules/admin/what-theme_import.php @@ -94,12 +94,12 @@ VALUES ('%s','N','%s','%s')", // Initialize array $THEMES = array( - 'theme_unix' => array(), // Unix name from filesystem - 'theme_name' => array(), // Title - 'theme_author' => array(), // Theme author's name - 'theme_email' => array(), // Author's email address - 'theme_url' => array(), // URL were you can download it from - 'theme_version' => array(), // Version number of theme + 'theme_unix' => array(), // Unix name from filesystem + 'theme_name' => array(), // Title + 'theme_author' => array(), // Theme author's name + 'theme_email' => array(), // Author's email address + 'theme_url' => array(), // URL were you can download it from + 'theme_version' => array(), // Version number of theme ); // Read directory "themes" diff --git a/templates/de/html/admin/admin_edit_theme_row.tpl b/templates/de/html/admin/admin_edit_theme_row.tpl index 03ff0c656d..057eafac02 100644 --- a/templates/de/html/admin/admin_edit_theme_row.tpl +++ b/templates/de/html/admin/admin_edit_theme_row.tpl @@ -16,7 +16,7 @@ $content[email] - $content[url] + $content[theme_url] v$content[theme_version]