PHP/Compat

* fixed misc issues Intellisense was nice enough to highlight.
 * mostly deprecated usage of uninitialized parameters
 * class GenericPage still needs a long, hard look and a refactor
This commit is contained in:
Sarjuuk
2024-03-11 19:40:30 +01:00
parent 3e6e43fd68
commit ec1a2afc5f
75 changed files with 387 additions and 223 deletions

View File

@@ -10,6 +10,9 @@ class ObjectPage extends GenericPage
{
use TrDetailPage;
protected $pageText = [];
protected $relBoss = null;
protected $type = Type::OBJECT;
protected $typeId = 0;
protected $tpl = 'object';
@@ -213,7 +216,7 @@ class ObjectPage extends GenericPage
/****************/
// pageText
if ($this->pageText = Game::getPageText($next = $this->subject->getField('pageTextId')))
if ($this->pageText = Game::getPageText($this->subject->getField('pageTextId')))
$this->addScript(
[SC_JS_FILE, 'js/Book.js'],
[SC_CSS_FILE, 'css/Book.css']