Explorar o código

try to tweek sidebar

andre %!s(int64=4) %!d(string=hai) anos
pai
achega
9835298628
Modificáronse 1 ficheiros con 10 adicións e 1 borrados
  1. 10 1
      core/UI/Widget/Sidebar/SidebarTrait.php

+ 10 - 1
core/UI/Widget/Sidebar/SidebarTrait.php

@@ -48,8 +48,17 @@ trait SidebarTrait
     }
     
     public function getChild($id){
+
+        logModuleCall(
+            'proxmoxCloud',
+            __FUNCTION__,
+            $this,
+            'Debug',
+            $id
+        );
+
         if(!isset($this->children[$id])){
-            throw new \Exception(sprintf("Blubb %s does not exist", $id));
+            throw new \Exception(sprintf("Sidebar %s does not exist", $id));
         }
         return $this->children[$id];
     }