예제 #1
0
 /**
  * This is a temporary function used to get the stylevar 'charset' (added for presentation).
  *
  * @return string, stylevar charset value
  */
 public static function getTempCharset()
 {
     // first check for user info
     $encoding = vB5_User::get('lang_charset');
     if (!$encoding) {
         //todo: we don't have a charset variable, although users can add one.
         $encoding = vB5_Template_Runtime::fetchStyleVar('charset');
     }
     return strtoupper($encoding);
 }