Skip to content

Commit 8f1d2ec

Browse files
authored
Update CommonJavascript.php
1 parent c619b36 commit 8f1d2ec

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Webfan/CommonJavascript.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -324,10 +324,8 @@ public static function getRequireJs(array $config = [], array $plugins = [])
324324
continue;
325325
}elseif(is_string($middleware[0]) && !preg_match($middleware[0], $moduleFilePath)){
326326
continue;
327-
}else{
328-
error_log('Invalid middleware in '.__FILE__, \E_USER_WARNING);
329-
continue;
330327
}
328+
331329
$moduleFileContent = call_user_func_array($middleware[1], [$moduleFileContent]);
332330
if(!is_string($moduleFileContent)){
333331
throw new Exception('ERROR: Validation failed (from path: '.$moduleFilePath.')!');
@@ -348,7 +346,7 @@ public static function getRequireJs(array $config = [], array $plugins = [])
348346
$phpCode = "<?php\n return $exp;";
349347

350348
if(!is_dir(dirname($cachePathFile))){
351-
mkdir(dirname($cachePathFile), 0755, true);
349+
mkdir(dirname($cachePathFile), 0775, true);
352350
}
353351
file_put_contents($cachePathFile, $phpCode);
354352
return include $tempFilename;

0 commit comments

Comments
 (0)