Template/Update (Cleanup)

* smush leftover changes into a commit
 * create fresh db dump, without dbc placeholders
 * version bump

 ... all done
This commit is contained in:
Sarjuuk
2025-08-23 17:33:57 +02:00
parent 6557e70d5c
commit 92c1c59d3a
15 changed files with 1298 additions and 1591 deletions

View File

@@ -8,7 +8,7 @@ if (!defined('AOWOW_REVISION'))
class InfoboxMarkup extends Markup
{
public function __construct(private array $items = [], array $opts, string $parent = '')
public function __construct(private array $items, array $opts, string $parent = '')
{
parent::__construct('', $opts, $parent);
}

View File

@@ -108,6 +108,9 @@ class Markup implements \JsonSerializable
else if ($match[1] == 'icondb')
$match[1] = 'icon';
// todo - respecte forced locale
// match[0] => [achievement=3579 domain=ru], [spell=40120 site=fr]
if ($match[1] == 'money')
{
if (stripos($match[0], 'items'))

View File

@@ -54,6 +54,10 @@ define ('SC_FLAG_NO_TIMESTAMP', 0x02);
define ('SC_FLAG_APPEND_LOCALE', 0x04);
define ('SC_FLAG_LOCALIZED', 0x08);
define('ICON_SIZE_TINY', 15);
define('ICON_SIZE_SMALL', 18);
define('ICON_SIZE_MEDIUM', 36);
define('ICON_SIZE_LARGE', 56);
// Databases
define('DB_AOWOW', 0);

View File

@@ -6,7 +6,7 @@ mb_internal_encoding('UTF-8');
error_reporting(E_ALL);
mysqli_report(MYSQLI_REPORT_ERROR);
define('AOWOW_REVISION', 40);
define('AOWOW_REVISION', 41);
define('OS_WIN', substr(PHP_OS, 0, 3) == 'WIN'); // OS_WIN as per compile info of php
define('CLI', PHP_SAPI === 'cli');
define('CLI_HAS_E', CLI && // WIN10 and later usually support ANSI escape sequences
@@ -184,7 +184,7 @@ register_shutdown_function(function() : void
{
// defer undisplayed error/exception notes
if (!CLI && ($n = Util::getNotes()))
$_SESSION['notes'][] = [$n[0], $n[1], 'Defered issues from previous request'];
$_SESSION['notes'][] = [$n[0], $n[1], 'Deferred issues from previous request'];
if ($e = error_get_last())
{