Fix for non-working theme-selector
authorRoland Häder <roland@mxchange.org>
Sat, 27 Feb 2010 21:06:06 +0000 (21:06 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 27 Feb 2010 21:06:06 +0000 (21:06 +0000)
inc/inc-functions.php
inc/libs/theme_functions.php
templates/de/html/admin/admin_theme_edit.tpl
templates/de/html/admin/admin_theme_edit_row.tpl
templates/de/html/admin/admin_theme_import_row.tpl

index c31c7eb..d93731a 100644 (file)
@@ -57,7 +57,13 @@ function setIncludePool ($pool, $includePool) {
 // Getter for INC_POOL
 function getIncludePool ($pool) {
        //* DEBUG: */ print __FUNCTION__.':pool='.$pool.'<br />';
-       return $GLOBALS['inc_pool'][$pool];
+       if (isset($GLOBALS['inc_pool'][$pool])) {
+               // Return found pool (array)
+               return $GLOBALS['inc_pool'][$pool];
+       } else {
+               // Return empty array if not found
+               return array();
+       }
 }
 
 // Count INC_POOL
index 9d97d50..a1b5630 100644 (file)
@@ -40,7 +40,7 @@
 // Some security stuff...
 if (!defined('__SECURITY')) {
        die();
-}
+} // END - if
 
 // Create a selection box with installed and activated themes or all if admin
 function generateThemeSelectionBox () {
@@ -49,9 +49,9 @@ function generateThemeSelectionBox () {
        $mod = getModule();
 
        // Construction URL
-       $formAction = "{%url=modules.php?module=" . $mod;
-       if (!empty($what)) $formAction .= "&amp;what=" . $what;
-       $formAction = '%}';
+       $formAction = '{%url=modules.php?module='. $mod;
+       if (!empty($what)) $formAction .= '&amp;what=' . $what;
+       $formAction .= '%}';
 
        // Initialize array
        $themesArray = array(
index 2b2b023..1197c9f 100644 (file)
@@ -7,17 +7,15 @@
                <td class="header_column bottom right" align="center">{--THEME_NAME--}</td>
                <td class="header_column bottom right" align="center">{--THEME_ACTIVE--}</td>
                <td class="header_column bottom right" align="center">{--THEME_AUTHOR--}</td>
-               <td class="header_column bottom right" align="center">{--THEME_URL--}</td>
                <td class="header_column bottom" align="center">{--THEME_VERSION--}</td>
        </tr>
        $content
        <tr>
-               <td colspan="7" class="admin_footer"><input
-                       type="reset" class="admin_reset" value="{--RESET_SELECT--}" />
-               <input type="submit" name="status" class="admin_submit"
-                       value="{--ADMIN_CHANGE_STATUS_THEME--}" /> <input
-                       type="submit" name="del" class="admin_delete"
-                       value="{--ADMIN_DELETE_ENTRIES--}" /></td>
+               <td colspan="6" class="admin_footer">
+                       <input type="reset" class="admin_reset" value="{--RESET_SELECT--}" />
+                       <input type="submit" name="status" class="admin_submit" value="{--ADMIN_CHANGE_STATUS_THEME--}" />
+                       <input type="submit" name="del" class="admin_delete" value="{--ADMIN_DELETE_ENTRIES--}" />
+               </td>
        </tr>
 </table>
 </form>
index 1314d26..22dce6d 100644 (file)
@@ -18,7 +18,7 @@
        <td class="switch_sw$content[sw] bottom right" align="center">
                <a href="$content[url_link]" target="_blank">$content[url_title]</a>
        </td>
-       <td class="switch_sw$content[sw] bottom right" align="center">
+       <td class="switch_sw$content[sw] bottom" align="center">
                v$content[ver]
        </td>
 </tr>
index 5d90018..4c5891a 100644 (file)
@@ -1,14 +1,14 @@
 <tr>
-  <td class="switch_sw$content[sw] bottom right" align="center">$content[unix]</td>
-  <td class="switch_sw$content[sw] bottom right" align="center">$content[name]</td>
-  <td class="switch_sw$content[sw] bottom right" align="center">
-    <a href="mailto:$content[email]?Subject=[Theme:] $content[name] ($content[unix])"."">$content[author]</a>
-  </td>
-  <td class="switch_sw$content[sw] bottom right" align="center">
-    <a href="$content[link]" target="_blank">$content[url]</a>
-  </td>
-  <td class="switch_sw$content[sw] bottom right" align="center">v$content[version]</td>
-  <td class="switch_sw$content[sw] bottom" align="center">
-    $content[form]
-  </td>
+       <td class="switch_sw$content[sw] bottom right" align="center">$content[unix]</td>
+       <td class="switch_sw$content[sw] bottom right" align="center">$content[name]</td>
+       <td class="switch_sw$content[sw] bottom right" align="center">
+               <a href="mailto:$content[email]?Subject=[Theme:] $content[name] ($content[unix])">$content[author]</a>
+       </td>
+       <td class="switch_sw$content[sw] bottom right" align="center">
+               <a href="$content[link]" target="_blank">$content[url]</a>
+       </td>
+       <td class="switch_sw$content[sw] bottom right" align="center">v$content[version]</td>
+       <td class="switch_sw$content[sw] bottom" align="center">
+               $content[form]
+       </td>
 </tr>