aboutsummaryrefslogtreecommitdiffstats
path: root/include/classes/BigPipe
diff options
context:
space:
mode:
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();
}
#===============================================================================