@@ -14,8 +14,8 @@ discard block |
||
| 14 | 14 | * @param array|bool $settings |
| 15 | 15 | * @return void |
| 16 | 16 | */ |
| 17 | -function register_module($module, $settings = false) { |
|
| 18 | - if ($settings === false) |
|
| 17 | +function register_module($module, $settings = FALSE) { |
|
| 18 | + if ($settings === FALSE) |
|
| 19 | 19 | $settings = []; |
| 20 | 20 | if (!isset($GLOBALS['modules'])) |
| 21 | 21 | $GLOBALS['modules'] = []; |
@@ -70,16 +70,16 @@ discard block |
||
| 70 | 70 | * @param bool|string $setting optional parameter, false to return all settings, or a specific setting name to return that setting |
| 71 | 71 | * @return array|false array of settings or false if no setting |
| 72 | 72 | */ |
| 73 | -function get_module_settings($module = 'default', $setting = false) { |
|
| 73 | +function get_module_settings($module = 'default', $setting = FALSE) { |
|
| 74 | 74 | if (!isset($GLOBALS['modules'][$module])) { |
| 75 | 75 | $keys = array_keys($GLOBALS['modules']); |
| 76 | 76 | $module = $keys[0]; |
| 77 | 77 | } |
| 78 | - if ($setting !== false) { |
|
| 78 | + if ($setting !== FALSE) { |
|
| 79 | 79 | if (isset($GLOBALS['modules'][$module][$setting])) |
| 80 | 80 | return $GLOBALS['modules'][$module][$setting]; |
| 81 | 81 | else |
| 82 | - return false; |
|
| 82 | + return FALSE; |
|
| 83 | 83 | } else |
| 84 | 84 | return $GLOBALS['modules'][$module]; |
| 85 | 85 | } |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | |
| 156 | 156 | public static function SetfaclPermissionsSetter(Event $event, $http_user, $path) { |
| 157 | 157 | if (!is_dir($path)) |
| 158 | - mkdir($path, 0777, true); |
|
| 158 | + mkdir($path, 0777, TRUE); |
|
| 159 | 159 | if (!is_dir($path)) |
| 160 | 160 | throw new \Exception('Path Not Found: '.$path); |
| 161 | 161 | self::runProcess($event, 'setfacl -m u:"'.$http_user.'":rwX -m u:'.$_SERVER['USER'].':rwX '.$path); |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | |
| 165 | 165 | public static function ChmodPermissionsSetter(Event $event, $http_user, $path) { |
| 166 | 166 | if (!is_dir($path)) |
| 167 | - mkdir($path, 0777, true); |
|
| 167 | + mkdir($path, 0777, TRUE); |
|
| 168 | 168 | if (!is_dir($path)) |
| 169 | 169 | throw new \Exception('Path Not Found: '.$path); |
| 170 | 170 | self::runProcess($event, 'chmod +a "'.$http_user.' allow delete,write,append,file_inherit,directory_inherit" '.$path); |