]> git.mxchange.org Git - mailer.git/commitdiff
Fix for missing array element 'url'
authorRoland Häder <roland@mxchange.org>
Thu, 2 Sep 2010 12:24:03 +0000 (12:24 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 2 Sep 2010 12:24:03 +0000 (12:24 +0000)
inc/modules/admin/what-theme_edit.php
inc/modules/admin/what-theme_import.php
templates/de/html/admin/admin_edit_theme_row.tpl

index ce99c5fdca8030f5fad5e0191222943a4bb7202f..de3f19ad787ff778d28a4110a2e1903915b8a084 100644 (file)
@@ -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'] = '<a href="{%url=modules.php?module=admin&amp;what=theme_edit&amp;default_theme=' . $content['theme_path'] . '%}" title="{--ADMIN_SET_AS_NEW_THEME--}">' . $content['theme_path'] . '</a>';
index 103e92c37a357d8269519c716e5e899f27f01e40..3a9bed37d0696064db6ca87c0fd1731fb1de64ea 100644 (file)
@@ -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"
index 03ff0c656de501a54adac43cfd5f88496aa36e4b..057eafac02f1ebffd08c2baf9cb7df47ed1ad8c5 100644 (file)
@@ -16,7 +16,7 @@
                $content[email]
        </td>
        <td class="{%template,ColorSwitch%} bottom right" align="center">
-               <a href="{%pipe,generateDerefererUrl=$content[url]%}" target="_blank">$content[url]</a>
+               <a href="{%pipe,generateDerefererUrl=$content[theme_url]%}" target="_blank">$content[theme_url]</a>
        </td>
        <td class="{%template,ColorSwitch%} bottom" align="center">
                v$content[theme_version]