Example #1
0
 protected function initializeRequest()
 {
     $culture = $this->getContext()->getCulture();
     $charset = $culture->getCharset();
     if ((!defined("STATISTIC_ONLY") || !STATISTIC_ONLY) && Config\Option::get("main", "include_charset", "Y") == "Y" && !empty($charset)) {
         $response = $this->getResponse();
         $response->addHeader("Content-Type", "text/html; charset=" . $charset);
     }
     parent::initializeRequest();
 }