@@ -71,7 +71,7 @@ |
||
| 71 | 71 | if (!file_exists($path_in_filesystem) || is_writable($path_in_filesystem)) { |
| 72 | 72 | return file_put_contents($path_in_filesystem, $data, LOCK_EX | FILE_BINARY); |
| 73 | 73 | } |
| 74 | - trigger_error("File $path_in_filesystem not available for writing", E_USER_WARNING); |
|
| 74 | + trigger_error("file $path_in_filesystem not available for writing", E_USER_WARNING); |
|
| 75 | 75 | return false; |
| 76 | 76 | } |
| 77 | 77 | /** |
@@ -92,7 +92,7 @@ |
||
| 92 | 92 | 0, |
| 93 | 93 | strpos($table_name, '"') |
| 94 | 94 | ); |
| 95 | - $update = preg_replace_callback( |
|
| 95 | + $update = preg_replace_callback( |
|
| 96 | 96 | '/"([^"]+)"/', |
| 97 | 97 | function ($matches) { |
| 98 | 98 | return "\"$matches[1]\" = EXCLUDED.\"$matches[1]\""; |
@@ -75,10 +75,10 @@ |
||
| 75 | 75 | * Try to load classes from different places. If not found in one place - try in another. |
| 76 | 76 | */ |
| 77 | 77 | if ( |
| 78 | - file_exists($file = CORE."/classes/$namespace/$class_name.php") || //Core classes |
|
| 78 | + file_exists($file = CORE."/classes/$namespace/$class_name.php") || //Core classes |
|
| 79 | 79 | file_exists($file = CORE."/thirdparty/$namespace/$class_name.php") || //Third party classes |
| 80 | - file_exists($file = CORE."/traits/$namespace/$class_name.php") || //Core traits |
|
| 81 | - file_exists($file = CORE."/drivers/$namespace/$class_name.php") || //Core drivers |
|
| 80 | + file_exists($file = CORE."/traits/$namespace/$class_name.php") || //Core traits |
|
| 81 | + file_exists($file = CORE."/drivers/$namespace/$class_name.php") || //Core drivers |
|
| 82 | 82 | file_exists($file = MODULES."/../$namespace/$class_name.php") //Classes in modules |
| 83 | 83 | ) { |
| 84 | 84 | $cache[$class] = realpath($file); |