/** * Cleanup the value of parameter containing CSS color value */ private function cleanupColorParam($name) { $value = $this->getParam($name); $value = WikiaPhotoGalleryHelper::sanitizeCssColor($value); $this->setParam($name, $value); }