diff --git a/modules/welcome/controllers/welcome.php b/modules/welcome/controllers/welcome.php index 993161f..fa9394b 100644 --- a/modules/welcome/controllers/welcome.php +++ b/modules/welcome/controllers/welcome.php @@ -1,4 +1,16 @@ buffer = ""; $this->headers = array(); } @@ -41,22 +38,26 @@ class Output extends JSObject{ // Set headers foreach($this->headers as $key => $val) { - if( ! isset($val)) + if( ! empty( $key or $val)) { - @header($key); - } - else - { - @header("$key: $val"); - } - + if( ! isset($val)) + { + @header($key); + } + else + { + @header("$key: $val"); + } + } } } if( ! empty($this->buffer)) { + // Compression is good! + ob_start("ob_gzhandler"); echo $this->buffer; - //ob_end_flush(); + ob_end_flush(); } } diff --git a/sys/r.php b/sys/r.php index 7937b7e..bff685f 100644 --- a/sys/r.php +++ b/sys/r.php @@ -57,7 +57,7 @@ class R extends ReflectionClass { $this->parent_class = $this->getParentClass(); $this->static_properties = $this->getStaticProperties(); $this->internal = (int)$this->isInternal(); - + return $this; }