aboutsummaryrefslogtreecommitdiffstats
path: root/include/classes/BigPipe
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2017-10-05 17:53:50 +0200
committerThomas Lange <code@nerdmind.de>2017-10-05 17:53:50 +0200
commit6550b64a5a6463bd371e13af82db86999b9363cc (patch)
treeae99b86a42ccd2c29d03b5ba20eaee64c3e9e9db /include/classes/BigPipe
parent58dbefb69068e074586be4ade67871a81c853233 (diff)
downloadbigpipe-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-xinclude/classes/BigPipe/Pagelet.php8
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();
}
#===============================================================================