]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-extensions.php
Fixed missed [sw] things in a lot templates, added more EL:
[mailer.git] / inc / modules / admin / what-extensions.php
index 5c12d48717407748847973276a54751fdb0f76e8..c25ef8fe423ef792f06722c74ab76bddff663ed6 100644 (file)
@@ -252,16 +252,22 @@ switch ($do) {
        case 'overview': // List all registered extensions
                if (isExtensionInstalledAndNewer('sql_patches', '0.0.6')) {
                        // Load extension data with CSS informations
-                       $result = SQL_QUERY("SELECT `id` AS ext_id, `ext_name`, `ext_active`, `ext_has_css` AS ext_css, `ext_version`
-FROM `{?_MYSQL_PREFIX?}_extensions`
+                       $result = SQL_QUERY("SELECT
+       `id` AS ext_id, `ext_name`, `ext_active`, `ext_has_css` AS ext_css, `ext_version`
+FROM
+       `{?_MYSQL_PREFIX?}_extensions`
 ".$where."
-ORDER BY `ext_name` ASC", __FILE__, __LINE__);
+ORDER BY
+       `ext_name` ASC", __FILE__, __LINE__);
                } else {
                        // Load extension data without CSS informations
-                       $result = SQL_QUERY("SELECT `id` AS ext_id, `ext_name`, `ext_active`, `id`, `ext_version`
-FROM `{?_MYSQL_PREFIX?}_extensions`
+                       $result = SQL_QUERY("SELECT
+       `id` AS ext_id, `ext_name`, `ext_active, `ext_version`
+FROM
+       `{?_MYSQL_PREFIX?}_extensions`
 ".$where."
-ORDER BY `ext_name` ASC", __FILE__, __LINE__);
+ORDER BY
+       `ext_name` ASC", __FILE__, __LINE__);
                }
 
                // Are there some entries?
@@ -274,15 +280,7 @@ ORDER BY `ext_name` ASC", __FILE__, __LINE__);
                                if (isExtensionInstalledAndNewer('sql_patches', '0.0.6')) $cssSelection = translateYesNo($content['ext_css']);
 
                                // Prepare data for the row template
-                               // @TODO Rewrite in template: id->ext_id,name->ext_name,active->ext_active,ver->ext_ver
-                               $content = array(
-                                       'id'      => $content['ext_id'],
-                                       'name'    => $content['ext_name'],
-                                       'active'  => translateYesNo($content['ext_active']),
-                                       'act_val' => $content['ext_active'],
-                                       'css'     => $cssSelection,
-                                       'ver'     => $content['ext_version'],
-                               );
+                               $content['ext_css'] = $cssSelection;
 
                                // Load row template and switch color
                                $OUT .= loadTemplate('admin_extensions_row', true, $content);