Project

General

Profile

« Previous | Next » 

Revision 2020

Added by Dietmar almost 11 years ago

  1. /admin/languages/detail.php::getInfoFromLanguageFile() change require_once to require

View differences:

details.php
21 21
{
22 22
	$mRetval = array();
23 23
	$mLang = Translate::getinstance();
24
    $oReg  = WbAdaptor::getInstance();
24 25
	// check for valid language code
25 26
	if(preg_match('/^([A-Z]{2}.php)/', $sFile)) {
26
		if(is_file(WB_PATH.'/languages/'.$sFile) ) {
27
			if(is_readable(WB_PATH.'/languages/'.$sFile) ) {
28
				require_once(WB_PATH.'/languages/'.$sFile);
27
		if(is_file($oReg->AppPath.'languages/'.$sFile) ) {
28
			if(is_readable($oReg->AppPath.'languages/'.$sFile) ) {
29
				require($oReg->AppPath.'languages/'.$sFile);
29 30
				$mRetval['CODE'] = $language_code;
30 31
				$mRetval['NAME'] = $language_name;
31 32
				$mRetval['AUTHOR'] = $language_author;

Also available in: Unified diff