Browse Source

optimize sql stuff

master
Oldperl 4 months ago
parent
commit
18d8bcda99
2 changed files with 3 additions and 2 deletions
  1. +1
    -1
      conlite/includes/functions.con2.php
  2. +2
    -1
      setup/data/base/base_area1.sql

+ 1
- 1
conlite/includes/functions.con2.php View File

@@ -238,7 +238,7 @@ function conGenerateCode($idcat, $idart, $lang, $client, $layout = false) {

foreach ($a_container as $key => $value) {

$sql = "SELECT * FROM " . $cfg["tab"]["mod"] . " WHERE idmod='" . $a_d[$value] . "'";
$sql = "SELECT output, template, name FROM " . $cfg["tab"]["mod"] . " WHERE idmod='" . $a_d[$value] . "'";

$db->query($sql);
$db->next_record();


+ 2
- 1
setup/data/base/base_area1.sql View File

@@ -38,6 +38,7 @@ INSERT INTO !PREFIX!_area VALUES('46', '0', 'client', '1', '1', '0');
INSERT INTO !PREFIX!_area VALUES('47', 'lang', 'lang_edit', '1', '1', '0');
INSERT INTO !PREFIX!_area VALUES('48', 'client', 'client_edit', '1', '1', '0');
INSERT INTO !PREFIX!_area VALUES('49', '0', 'logs', '1', '1', '1');
INSERT INTO !PREFIX!_area VALUES('51', '0', 'myArea', '1', '1', '1');
INSERT INTO !PREFIX!_area VALUES('52', '0', 'info', '0', '1', '1');
INSERT INTO !PREFIX!_area VALUES('53', '0', 'symbolhelp', '0', '1', '1');
INSERT INTO !PREFIX!_area VALUES('54', '0', 'groups', '1', '1', '0');
@@ -84,4 +85,4 @@ INSERT INTO !PREFIX!_area VALUES('403', 'htmltpl', 'htmltpl_history', '1', '1',
INSERT INTO !PREFIX!_area VALUES('415', 'system', 'system_configuration', '1', '1', '0');
INSERT INTO !PREFIX!_area VALUES('811', 'system', 'system_purge', '1', '1', '0');
INSERT INTO !PREFIX!_area VALUES('812', 'system', 'db_backup', '1', '1', '0');
INSERT INTO !PREFIX!_area VALUES('990', '0', 'pluginmanager', '1', '1', '1');
INSERT INTO !PREFIX!_area VALUES('990', '0', 'pluginmanager', '1', '1', '1');

Loading…
Cancel
Save