fixed and close #22
Dieser Commit ist enthalten in:
Ursprung
dbaaa6ffa5
Commit
8278e52a89
|
@ -201,7 +201,11 @@ if ($action == "lang_newlanguage" || $action == "lang_deletelanguage") {
|
||||||
$eselect = new cHTMLSelectElement("sencoding");
|
$eselect = new cHTMLSelectElement("sencoding");
|
||||||
$eselect->setStyle('width:255px');
|
$eselect->setStyle('width:255px');
|
||||||
$eselect->autoFill($charsets);
|
$eselect->autoFill($charsets);
|
||||||
|
if($db->f("encoding")) {
|
||||||
$eselect->setDefault($db->f("encoding"));
|
$eselect->setDefault($db->f("encoding"));
|
||||||
|
} else {
|
||||||
|
$eselect->setDefault('utf-8');
|
||||||
|
}
|
||||||
|
|
||||||
$languagecode = new cHTMLSelectElement("languagecode");
|
$languagecode = new cHTMLSelectElement("languagecode");
|
||||||
$languagecode->setStyle('width:255px');
|
$languagecode->setStyle('width:255px');
|
||||||
|
@ -256,9 +260,7 @@ if ($action == "lang_newlanguage" || $action == "lang_deletelanguage") {
|
||||||
if ($_REQUEST['action'] != '') {
|
if ($_REQUEST['action'] != '') {
|
||||||
$page->addScript('reload', $sReload);
|
$page->addScript('reload', $sReload);
|
||||||
}
|
}
|
||||||
|
|
||||||
$page->render();
|
$page->render();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
|
|
@ -1,4 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Project:
|
* Project:
|
||||||
* Contenido Content Management System
|
* Contenido Content Management System
|
||||||
|
@ -27,17 +28,16 @@
|
||||||
* }}
|
* }}
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (!defined('CON_FRAMEWORK')) {
|
if (!defined('CON_FRAMEWORK')) {
|
||||||
die('Illegal call');
|
die('Illegal call');
|
||||||
}
|
}
|
||||||
|
|
||||||
$area = "lang";
|
$area = "lang";
|
||||||
|
|
||||||
if (!isset($action)) $action = "";
|
if (!isset($action))
|
||||||
|
$action = "";
|
||||||
|
|
||||||
if (!is_numeric($targetclient))
|
if (!is_numeric($targetclient)) {
|
||||||
{
|
|
||||||
$targetclient = $client;
|
$targetclient = $client;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -112,19 +112,16 @@ if ( $tmp_notification ) {
|
||||||
|
|
||||||
$noti_html = '<tr><td colspan="3">' . $tmp_notification . '</td></tr>';
|
$noti_html = '<tr><td colspan="3">' . $tmp_notification . '</td></tr>';
|
||||||
$tpl->set('s', 'NOTIFICATION', $noti_html);
|
$tpl->set('s', 'NOTIFICATION', $noti_html);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
$tmp_notification = $notification->returnNotification("info", i18n("Language deleted"));
|
$tmp_notification = $notification->returnNotification("info", i18n("Language deleted"));
|
||||||
|
|
||||||
$noti_html = '<tr><td colspan="3">' . $tmp_notification . '</td></tr>';
|
$noti_html = '<tr><td colspan="3">' . $tmp_notification . '</td></tr>';
|
||||||
$tpl->set('s', 'NOTIFICATION', '');
|
$tpl->set('s', 'NOTIFICATION', '');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$tpl->set('s', 'LANG_COUNT', $iLangCount);
|
$tpl->set('s', 'LANG_COUNT', $iLangCount);
|
||||||
|
|
||||||
# Generate template
|
# Generate template
|
||||||
$tpl->generate($cfg['path']['templates'] . $cfg['templates']['lang_overview']);
|
$tpl->generate($cfg['path']['templates'] . $cfg['templates']['lang_overview']);
|
||||||
|
|
||||||
?>
|
?>
|
Laden…
In neuem Issue referenzieren