Assembla home | Assembla project page
 

Changeset 740

Show
Ignore:
Timestamp:
01/03/09 12:07:48 (6 months ago)
Author:
joanhey
Message:

AƱadida constante KUMBIA_CHARSET para definir el charset.
De esta manera es mucho mas rapido.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 0.5/library/kumbia/builder/base_builders/app/template/views/index.phtml

    r378 r740  
    22<html xmlns="http://www.w3.org/1999/xhtml"> 
    33 <head> 
    4   <meta http-equiv='Content-type' content='text/html; charset=<?= Kumbia::get_active_app_charset() ?>' /> 
     4  <meta http-equiv='Content-type' content='text/html; charset=<?= KUMBIA_CHARSET ?>' /> 
    55  <title>Kumbia PHP Framework</title> 
    66  <?= stylesheet_link_tag('style', 'use_variables: true') ?> 
  • 0.5/library/kumbia/filter/base_filters/htmlentities.php

    r257 r740  
    3232         */ 
    3333        public function execute($value){ 
    34                 $charset = (isset($this->charset) && $this->charset) ? $this->charset: kumbia::get_active_app_charset(); 
    35                 return htmlentities((string)$value, ENT_QUOTES, $charset); 
     34                return htmlentities((string)$value, ENT_QUOTES, KUMBIA_CHARSET); 
    3635        } 
    3736 
  • 0.5/library/kumbia/filter/base_filters/htmlspecialchars.php

    r257 r740  
    3232         */ 
    3333        public function execute($value){ 
    34                 $charset = (isset($this->charset) && $this->charset) ? $this->charset: kumbia::get_active_app_charset(); 
    35                 return htmlspecialchars((string)$value, ENT_QUOTES, $charset); 
     34                return htmlspecialchars((string)$value, ENT_QUOTES, KUMBIA_CHARSET); 
    3635        } 
    3736 
  • 0.5/library/kumbia/helpers/tags.php

    r731 r740  
    16031603<head> 
    16041604<title>Kumbia PHP Framework</title> 
    1605 <meta http-equiv="Content-type" content="text/html; charset='.Kumbia::get_active_app_charset().'" />'."\n"; 
     1605<meta http-equiv="Content-type" content="text/html; charset='.KUMBIA_CHARSET.'" />'."\n"; 
    16061606print stylesheet_link_tag("style", 'use_variables: true'); 
    16071607kumbia::stylesheet_link_tags(). 
  • 0.5/library/kumbia/kumbia.php

    r739 r740  
    232232            date_default_timezone_set("America/New_York"); 
    233233        } 
     234                /** 
     235        * Establecer el charset de la app en la constante KUMBIA_CHARSET 
     236        */ 
     237                define('KUMBIA_CHARSET', $config->kumbia->charset); 
    234238    } 
    235239    /** 
     
    968972     */ 
    969973    public static function get_active_app_charset() { 
    970         $core = Config::read('config.ini'); 
    971         return $core->{self::$active_app}->charset; 
     974        return KUMBIA_CHARSET; 
    972975    } 
    973976 
  • 0.5/library/kumbia/xml/xml.php

    r370 r740  
    3737 
    3838        function __construct(){ 
    39                 $config = Config::read("config.ini"); 
    4039                $active_app = Kumbia::$active_app; 
    41                 $this->code.="<?xml version='1.0' encoding='{$config->$active_app->charset}'?>\r\n<response>\r\n"; 
     40                $this->code.="<?xml version='1.0' encoding='{KUMBIA_CHARSET}'?>\r\n<response>\r\n"; 
    4241        } 
    4342