Load the complete config info only for options
This commit is contained in:
parent
e30b100e8e
commit
4c7fe8741b
|
@ -295,6 +295,22 @@ foreach ( array_map('basename', glob('skins/'.$current_skin.'/css/*',GLOB_ONLYDI
|
||||||
</form>
|
</form>
|
||||||
<?php
|
<?php
|
||||||
} else {
|
} else {
|
||||||
|
$config = array();
|
||||||
|
$configCat = array();
|
||||||
|
$configCats = array();
|
||||||
|
|
||||||
|
$result = $dbConn->query('SELECT * FROM Config ORDER BY Id ASC');
|
||||||
|
if ( !$result )
|
||||||
|
echo mysql_error();
|
||||||
|
while( $row = dbFetchNext($result) ) {
|
||||||
|
$config[$row['Name']] = $row;
|
||||||
|
if ( !($configCat = &$configCats[$row['Category']]) ) {
|
||||||
|
$configCats[$row['Category']] = array();
|
||||||
|
$configCat = &$configCats[$row['Category']];
|
||||||
|
}
|
||||||
|
$configCat[$row['Name']] = $row;
|
||||||
|
}
|
||||||
|
|
||||||
if ( $tab == 'system' ) {
|
if ( $tab == 'system' ) {
|
||||||
$configCats[$tab]['ZM_LANG_DEFAULT']['Hint'] = join( '|', getLanguages() );
|
$configCats[$tab]['ZM_LANG_DEFAULT']['Hint'] = join( '|', getLanguages() );
|
||||||
$configCats[$tab]['ZM_SKIN_DEFAULT']['Hint'] = join( '|', $skin_options );
|
$configCats[$tab]['ZM_SKIN_DEFAULT']['Hint'] = join( '|', $skin_options );
|
||||||
|
|
Loading…
Reference in New Issue