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