PM-4428
This commit is contained in:
@@ -54,8 +54,10 @@ class Common
|
|||||||
$files = glob("$path/$singlePattern", $flags);
|
$files = glob("$path/$singlePattern", $flags);
|
||||||
$dirs = glob("$path/*", GLOB_MARK|GLOB_ONLYDIR|GLOB_NOSORT);
|
$dirs = glob("$path/*", GLOB_MARK|GLOB_ONLYDIR|GLOB_NOSORT);
|
||||||
|
|
||||||
foreach ($dirs as $dir) {
|
if(is_array($dirs)){
|
||||||
$files = array_merge($files, self::rglob("$dir/$singlePattern", $flags));
|
foreach ($dirs as $dir) {
|
||||||
|
$files = array_merge($files, self::rglob("$dir/$singlePattern", $flags));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($onlyFiles) {
|
if ($onlyFiles) {
|
||||||
|
|||||||
@@ -4910,10 +4910,14 @@ class G
|
|||||||
$list = glob( rtrim( $path, DIRECTORY_SEPARATOR ) . DIRECTORY_SEPARATOR . '*' );
|
$list = glob( rtrim( $path, DIRECTORY_SEPARATOR ) . DIRECTORY_SEPARATOR . '*' );
|
||||||
|
|
||||||
$sw = true;
|
$sw = true;
|
||||||
foreach ($list as $f) {
|
if(is_array($list)){
|
||||||
if (! G::is_writable_r( $f, $noWritableFiles )) {
|
foreach ($list as $f) {
|
||||||
$sw = false;
|
if (! G::is_writable_r( $f, $noWritableFiles )) {
|
||||||
|
$sw = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
$sw = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $sw;
|
return $sw;
|
||||||
|
|||||||
@@ -476,9 +476,11 @@ class Translation extends BaseTranslation
|
|||||||
$this->addTranslationEnvironment( $params['LOCALE'], $params['HEADERS'], $params['COUNT'] );
|
$this->addTranslationEnvironment( $params['LOCALE'], $params['HEADERS'], $params['COUNT'] );
|
||||||
//getting more language translations
|
//getting more language translations
|
||||||
$files = glob( $translationsPath . "*.po" );
|
$files = glob( $translationsPath . "*.po" );
|
||||||
foreach ($files as $file) {
|
if(is_array($files)){
|
||||||
$params = self::getInfoFromPOFile( $file );
|
foreach ($files as $file) {
|
||||||
$this->addTranslationEnvironment( $params['LOCALE'], $params['HEADERS'], $params['COUNT'] );
|
$params = self::getInfoFromPOFile( $file );
|
||||||
|
$this->addTranslationEnvironment( $params['LOCALE'], $params['HEADERS'], $params['COUNT'] );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$envs = unserialize( file_get_contents( $filePath ) );
|
$envs = unserialize( file_get_contents( $filePath ) );
|
||||||
|
|||||||
Reference in New Issue
Block a user