From 6550b64a5a6463bd371e13af82db86999b9363cc Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Thu, 5 Oct 2017 17:53:50 +0200 Subject: The method "addDependency" no longer accepts a pagelet ID as a string. You must now pass an existing Pagelet instance to the method! --- include/classes/BigPipe/Pagelet.php | 8 ++------ 1 file 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(); } #=============================================================================== -- cgit v1.2.3