Upgrade code - step 1

This commit is contained in:
Fernando Ontiveros
2025-03-27 12:06:06 +00:00
parent fbd92c5964
commit 7f3ee186de
47635 changed files with 5941896 additions and 1779 deletions

View File

@@ -220,7 +220,7 @@ class Bootstrap
return false;
}
if ($localPath != 'jsMethod') {
$realPath = $localPath . $match[1];
$realPath = $localPath . (isset($match[1]) ? $match[1] : '');
} else {
$realPath = $localPath;
}

View File

@@ -75,6 +75,8 @@ class Controller
*
* @param string $name
* @return string or NULL if the internal var doesn't exist
*
* phpcs:ignore PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection
*/
public function __get($name)
{

View File

@@ -916,7 +916,7 @@ class database extends database_base
InstallerModule::setNewConnection($connection, $host, $user, $pass, $database, $port);
$results = DB::connection($connection)
->select(DB::raw('select version()'));
->select(rawQuery('select version()'));
preg_match($this->getRegexVersionMysql(), $results[0]->{'version()'}, $version);

View File

@@ -504,6 +504,11 @@ class G
}
if (is_dir($dirName)) {
// Compatibility with Alpine Linux
if (!defined('GLOB_BRACE')) {
define('GLOB_BRACE', 0);
}
foreach (glob($dirName . '/{,.}*', GLOB_BRACE) as $file) {
if ($file == $dirName . '/.' || $file == $dirName . '/..') {
continue;