Fix exit into functions

This commit is contained in:
Laurent Destailleur 2016-06-28 02:22:01 +02:00
parent 1a3bd97a55
commit 5aa561598f

View File

@ -167,7 +167,7 @@ class Translate
if (empty($domain)) if (empty($domain))
{ {
dol_print_error('',get_class($this)."::Load ErrorWrongParameters"); dol_print_error('',get_class($this)."::Load ErrorWrongParameters");
exit; return -1;
} }
if ($this->defaultlang == 'none_NONE') return 0; // Special language code to not translate keys if ($this->defaultlang == 'none_NONE') return 0; // Special language code to not translate keys