diff --git a/components/Loading.php b/components/Loading.php index 909c500..50b5f22 100644 --- a/components/Loading.php +++ b/components/Loading.php @@ -4,9 +4,10 @@ use Cms\Classes\ComponentBase; use \stdClass; - class Loading extends ComponentBase { + private $Loading; + public function componentDetails() { return [ @@ -43,8 +44,8 @@ public function defineProperties() public function onRun() { $this->Loading = new stdClass(); - $this->Loading->backgroundColor = $this->propertyOrParam('backgroundColorCGGStudio'); - $this->Loading->speed = $this->propertyOrParam('speedCGGStudio'); + $this->Loading->backgroundColor = $this->property('backgroundColorCGGStudio'); + $this->Loading->speed = $this->property('speedCGGStudio'); $this->page['loading'] = $this->Loading; // Add css