File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ function autoload($class) {
150
150
//convert camelCase to snake_case
151
151
$ sqlFile = strtolower (preg_replace ('/(?<!^)(?<!\/)(?<! \\\)[A-Z]/ ' , '-$0 ' , $ sqlFile ));
152
152
$ file = basename ($ sqlFile );
153
- $ pluginName = str_replace ([DS . 'plugins ' . DS , $ file ], '' , $ sqlFile );
153
+ $ pluginName = str_replace ([DS . 'plugins ' . DS , DS . $ file ], '' , $ sqlFile ) . DS ;
154
154
$ pluginName = strtolower (preg_replace ('/(?<!^)(?<!\/)(?<! \\\)[A-Z]/ ' , '-$0 ' , $ pluginName ));
155
155
$ sqlFile = DIR_PLUGINS . $ pluginName . 'sql ' . DS . DB_ENGINE . DS . $ file . '.sql ' ;
156
156
} else {
@@ -173,7 +173,7 @@ function autoload($class) {
173
173
174
174
if (SQL_CHECK || ! $ fileExists ) {
175
175
if (! file_exists ($ sqlFile )) {
176
- throw new \Exception (" SQL file $ sqlFile does not exist for $ relativeClass! " );
176
+ throw new \Exception (sprintf ( \ Vvveb \__ ( ' SQL file %s does not exist for %s! ' ), $ sqlFile , $ relativeClass) );
177
177
}
178
178
//if the file has not been generated yet or sql files is changed recompile
179
179
if (! $ fileExists || ((filemtime ($ sqlFile ) > filemtime ($ file )))) {
You can’t perform that action at this time.
0 commit comments