Esempio n. 1
0
 /**
  * Processes a configuration item's new value
  *
  * @param string $key
  *
  * @return mixed
  */
 static function process($key)
 {
     $value = CoreUtils::trim($_POST['value']);
     if ($value === '') {
         return null;
     }
     switch ($key) {
         case "reservation_rules":
         case "about_reservations":
             $value = CoreUtils::sanitizeHtml($value, $key === 'reservation_rules' ? array('li', 'ol') : array('p'));
             break;
     }
     return $value;
 }