added paging chunks to maplist

This commit is contained in:
Steffen Schröder
2014-04-28 16:59:55 +02:00
parent cac3550856
commit 8b83825344
5 changed files with 109 additions and 68 deletions

View File

@ -81,7 +81,9 @@ class Script {
else {
$scriptFunction = new ScriptFunction($name, $text);
}
$this->functions[$scriptFunction->getName()] = $scriptFunction;
if (!in_array($scriptFunction, $this->functions)) {
array_push($this->functions, $scriptFunction);
}
return $this;
}