Misc/Mergefix

* added clean db dump
 * cleanup fails from profiler merge
 * maybe fixed setup being unable to find images for processing
 * version push
This commit is contained in:
Sarjuuk
2018-03-26 15:10:08 +02:00
parent 0ff0e5b59e
commit 86b4915dee
8 changed files with 1069 additions and 929 deletions

View File

@@ -1,6 +1,6 @@
<?php
define('AOWOW_REVISION', 26);
define('AOWOW_REVISION', 27);
define('CLI', PHP_SAPI === 'cli');

View File

@@ -1329,7 +1329,7 @@ class Util
if ($itemLevel == 60 && $quality == ITEM_QUALITY_UNCOMMON)
return 6.0;
// common - BC - vendored gems
if ($itemLevel == 55 && $quality == ITEM_QUALITY_COMMON)
if ($itemLevel == 55 && $quality == ITEM_QUALITY_NORMAL)
return 4.0;
// dafuq..?

File diff suppressed because one or more lines are too long

View File

@@ -233,20 +233,11 @@ class FileGen
CLI::write('Also, expected include setup/tools/filegen/'.$name.'.func.php was not found.');
}
}
if (fWrite($dest, $content))
{
CLI::write(sprintf(ERR_NONE, CLI::bold($destPath.$file)), CLI::LOG_OK);
if ($content && $funcOK)
$success = true;
}
else
CLI::write(sprintf(ERR_WRITE_FILE, CLI::bold($destPath.$file)), CLI::LOG_ERROR);
fClose($dest);
}
else
CLI::write(sprintf(ERR_CREATE_FILE, CLI::bold($destPath.$file)), CLI::LOG_ERROR);
if ($content && $funcOK)
if (CLISetup::writeFile($destPath.$file, $content))
$success = true;
}
else
CLI::write(sprintf(ERR_READ_FILE, CLI::bold(FileGen::$tplPath.$file.'.in')), CLI::LOG_ERROR);

View File

@@ -219,7 +219,7 @@ if (!CLI)
if (!($mode & $modeMask))
unset($paths[$mode]);
foreach (CLISetup::$expectedPaths as $xp => $__)
foreach (CLISetup::$expectedPaths as $xp => $locId)
{
if (!in_array($locId, CLISetup::$localeIds))
continue;
@@ -426,7 +426,7 @@ if (!CLI)
if(!isset($paths[0x16][2][$mapLoc]))
continue;
$p = sprintf($imgPath, $mapLoc).$paths[0];
$p = sprintf($imgPath, $mapLoc.'/').$paths[0x16][0];
if (CLISetup::fileExists($p))
{
CLI::write(' - using files from '.($mapLoc ?: '/').' for locale '.Util::$localeStrings[$l], CLI::LOG_INFO);

View File

@@ -24,8 +24,8 @@ function events(array $ids = [])
ge.eventEntry,
holiday,
0, -- cuFlags
UNIX_TIMESTAMP(start_time),
UNIX_TIMESTAMP(end_time),
IFNULL(UNIX_TIMESTAMP(start_time), 0),
IFNULL(UNIX_TIMESTAMP(end_time), 0),
occurence * 60,
length * 60,
IF (gep.eventEntry IS NOT NULL, GROUP_CONCAT(prerequisite_event SEPARATOR " "), NULL),

View File

@@ -15,21 +15,22 @@ CREATE TABLE `aowow_profiler_sync` (
DROP TABLE IF EXISTS `aowow_profiler_guild`;
CREATE TABLE `aowow_profiler_guild` (
`id` int(10) unsigned NOT NULL,
`realm` int(10) unsigned NOT NULL DEFAULT '0',
`realmGUID` int(10) unsigned NOT NULL DEFAULT '0',
`cuFlags` int(10) unsigned NOT NULL DEFAULT '0',
`name` varchar(26) NOT NULL DEFAULT '',
`nameUrl` varchar(26) NOT NULL DEFAULT '',
`emblemStyle` tinyint(3) unsigned NOT NULL DEFAULT '0',
`emblemColor` tinyint(3) unsigned NOT NULL DEFAULT '0',
`borderStyle` tinyint(3) unsigned NOT NULL DEFAULT '0',
`borderColor` tinyint(3) unsigned NOT NULL DEFAULT '0',
`backgroundColor` tinyint(3) unsigned NOT NULL DEFAULT '0',
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`realm` int(10) unsigned NOT NULL,
`realmGUID` int(10) unsigned NOT NULL,
`cuFlags` int(10) unsigned NOT NULL DEFAULT 0,
`name` varchar(26) NOT NULL,
`nameUrl` varchar(26) NOT NULL,
`emblemStyle` tinyint(3) unsigned NOT NULL DEFAULT 0,
`emblemColor` tinyint(3) unsigned NOT NULL DEFAULT 0,
`borderStyle` tinyint(3) unsigned NOT NULL DEFAULT 0,
`borderColor` tinyint(3) unsigned NOT NULL DEFAULT 0,
`backgroundColor` tinyint(3) unsigned NOT NULL DEFAULT 0,
`info` varchar(500) NOT NULL DEFAULT '',
`createDate` int(10) unsigned NOT NULL DEFAULT '0',
INDEX `name` (`name`),
INDEX `guild` (`id`)
`createDate` int(10) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`id`),
UNIQUE KEY `realm_realmGUID` (`realm`,`realmGUID`),
KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `aowow_profiler_guild_rank`;

View File

@@ -4652,7 +4652,7 @@ function ProfilerInventory(_parent) {
style: 'outline: none'
};
// swfobject.embedSWF(g_staticUrl + '/modelviewer/ZAMviewerfp11.swf', _swfModel.id, '100%', '100%', '10.0.0', g_staticUrl + '/modelviewer/expressInstall.swf', flashVars, params, attributes);
swfobject.embedSWF(g_staticUrl + '/modelviewer/ZAMviewerfp11.swf', _swfModel.id, '100%', '100%', '10.0.0', g_staticUrl + '/modelviewer/expressInstall.swf', flashVars, params, attributes);
// swfobject.embedSWF('http://static.wowhead.com/modelviewer/ZAMviewerfp11.swf', _swfModel.id, '100%', '100%', '10.0.0', 'http://static.wowhead.com/modelviewer/expressInstall.swf', flashVars, params, attributes);
_mvInited = true;