diff options
Diffstat (limited to 'include/classes/BigPipe/Pagelet.php')
-rwxr-xr-x | include/classes/BigPipe/Pagelet.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/include/classes/BigPipe/Pagelet.php b/include/classes/BigPipe/Pagelet.php index bdab651..f052b71 100755 --- a/include/classes/BigPipe/Pagelet.php +++ b/include/classes/BigPipe/Pagelet.php @@ -119,12 +119,8 @@ class Pagelet extends Item { #=============================================================================== # Attach a display dependency #=============================================================================== - public function addDependency($Pagelet) { - if($Pagelet instanceof Pagelet) { - return $this->dependencies[] = $Pagelet->getID(); - } - - return $this->dependencies[] = $Pagelet; + public function addDependency(Pagelet $Pagelet) { + return $this->dependencies[] = $Pagelet->getID(); } #=============================================================================== |