@@ -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); |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | use |
| 26 | 26 | CRUD, |
| 27 | 27 | Singleton; |
| 28 | - protected $data_model = [ |
|
| 28 | + protected $data_model = [ |
|
| 29 | 29 | 'id' => 'int:0', |
| 30 | 30 | 'user' => 'int:0', |
| 31 | 31 | 'date' => 'int:0', |