mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Listviews/AddIns
* AddIns must be output directly before the listview it is used by
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user