Misc/Fixups

* remove w from umask for generated files
 * fixed warning in setup dbconfig
 * added lost Markup.js generation to initial setup
This commit is contained in:
Sarjuuk
2024-02-28 17:59:52 +01:00
parent 8bbffae837
commit 9831038729
3 changed files with 3 additions and 2 deletions

View File

@@ -456,7 +456,7 @@ class Timer
abstract class Util
{
const FILE_ACCESS = 0777;
const FILE_ACCESS = 0755;
const GEM_SCORE_BASE_WOTLK = 16; // rare quality wotlk gem score
const GEM_SCORE_BASE_BC = 8; // rare quality bc gem score

View File

@@ -116,7 +116,7 @@ function dbconfig() : void
{
if ($db != 'characters')
$buff .= '$AoWoWconf[\''.$db.'\'] = '.var_export($AoWoWconf[$db], true).";\n\n";
else
else if (isset($AoWoWconf[$db]))
foreach ($AoWoWconf[$db] as $idx => $charInfo)
$buff .= '$AoWoWconf[\''.$db.'\'][\''.$idx.'\'] = '.var_export($AoWoWconf[$db][$idx], true).";\n\n";
}

View File

@@ -99,6 +99,7 @@ function setup() : void
['FileGen::generate', 'gems', null, null, null],
['FileGen::generate', 'profiler', null, null, null],
['FileGen::generate', 'weightPresets', null, null, null],
['FileGen::generate', 'markup', null, null, null],
// apply sql-updates from repository
['update', &$upd, null, null, null],
['sync', &$upd, null, null, null],