diff options
author | Thomas Lange <code@nerdmind.de> | 2017-10-05 17:53:50 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2017-10-05 17:53:50 +0200 |
commit | 6550b64a5a6463bd371e13af82db86999b9363cc (patch) | |
tree | ae99b86a42ccd2c29d03b5ba20eaee64c3e9e9db /include/classes/BigPipe | |
parent | 58dbefb69068e074586be4ade67871a81c853233 (diff) | |
download | bigpipe-6550b64a5a6463bd371e13af82db86999b9363cc.tar.gz bigpipe-6550b64a5a6463bd371e13af82db86999b9363cc.tar.xz bigpipe-6550b64a5a6463bd371e13af82db86999b9363cc.zip |
The method "addDependency" no longer accepts a pagelet ID as a string. You must now pass an existing Pagelet instance to the method!
Diffstat (limited to 'include/classes/BigPipe')
-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(); } #=============================================================================== |