Merge pull request #2502 from Jennydmz/master
BUG_13887 Permite eliminacion del lenguaje actual.
This commit is contained in:
@@ -152,6 +152,8 @@ try {
|
||||
$oContent = new Content();
|
||||
$aRow = $oDataset->getRow();
|
||||
|
||||
if($locale != "en"){ //Default Lengage 'en'
|
||||
if($locale != SYS_LANG){ //Current lenguage
|
||||
//THERE IS NO ANY CASE STARTED FROM THES LANGUAGE
|
||||
if ($aRow[0] == 0) { //so we can delete this language
|
||||
try {
|
||||
@@ -164,6 +166,12 @@ try {
|
||||
} else {
|
||||
echo str_replace( '{0}', $aRow[0], G::LoadTranslation( 'ID_LANGUAGE_CANT_DELETE' ) );
|
||||
}
|
||||
} else {
|
||||
echo str_replace( '{0}', $aRow[0], G::LoadTranslation( 'ID_LANGUAGE_CANT_DELETE_CURRENTLY' ) );
|
||||
}
|
||||
} else {
|
||||
echo str_replace( '{0}', $aRow[0], G::LoadTranslation( 'ID_LANGUAGE_CANT_DELETE_DEFAULT' ) );
|
||||
}
|
||||
break;
|
||||
}
|
||||
} catch (Exception $oException) {
|
||||
|
||||
Reference in New Issue
Block a user