Listviews/AddIns

* AddIns must be output directly before the listview it is used by
This commit is contained in:
Sarjuuk
2025-10-26 17:24:27 +01:00
parent cf2ace805b
commit 3a25c2390f
4 changed files with 47 additions and 47 deletions

View File

@@ -164,10 +164,11 @@ class Listview implements \JsonSerializable
public function __toString() : string
{
$addIn = '';
if ($this->__addIn)
include($this->__addIn);
$addIn = file_get_contents($this->__addIn).PHP_EOL;
return "new Listview(".Util::toJSON($this).");\n";
return $addIn.'new Listview('.Util::toJSON($this).');'.PHP_EOL;
}
}