variants) && array_key_exists($size, $this->variants) && is_array($this->variants[$size]) && $this->variants[$size]['size'] === null) { $important_create = true; } return parent::getImageVariant($size, $force_create, $important_create); } public function getThumb($width = 0, $height = 0, $crop_method = null) { if ( $width == 0 && $height == 0 ) { return \Majestic\Config::get('static_url') . $this->getWebName(); } return \Majestic\Config::get('static_url') . $this->getVariant($width . 'x' . $height)->getWebName(); } }