Skip to content
Browse files

1.1.14 release.

  • Loading branch information...
1 parent eda9511 commit f0fee98ee84f70f1f3652f65562c9670e919cb4e @qiangxue qiangxue committed Aug 11, 2013
Showing with 14 additions and 11 deletions.
  1. +2 −2 CHANGELOG
  2. +1 −1 framework/YiiBase.php
  3. +11 −8 framework/yiilite.php
View
4 CHANGELOG
@@ -1,8 +1,8 @@
Yii Framework Change Log
========================
-Version 1.1.14
---------------
+Version 1.1.14 August 11, 2013
+------------------------------
- Bug: There was unnecessary echo in CRUD views generated by Gii (samdark)
- Bug: CJavaScript::encode was formatting floats in a wrong way during encoding (samdark)
- Bug: Fixed minLength and maxLength range check in CCaptchaAction::generateVerifyCode so values are now always stay in bounds (samdark)
View
2 framework/YiiBase.php
@@ -80,7 +80,7 @@ class YiiBase
*/
public static function getVersion()
{
- return '1.1.14-dev';
+ return '1.1.14';
}
/**
View
19 framework/yiilite.php
@@ -40,7 +40,7 @@ class YiiBase
private static $_logger;
public static function getVersion()
{
- return '1.1.14-rc';
+ return '1.1.14';
}
public static function createWebApplication($config=null)
{
@@ -134,8 +134,14 @@ public static function import($alias,$forceInclude=false)
return $alias;
}
else
- throw new CException(Yii::t('yii','Alias "{alias}" is invalid. Make sure it points to an existing directory.',
- array('{alias}'=>$namespace)));
+ {
+ // try to autoload the class with an autoloader
+ if (class_exists($alias,true))
+ return self::$_imports[$alias]=$alias;
+ else
+ throw new CException(Yii::t('yii','Alias "{alias}" is invalid. Make sure it points to an existing directory or file.',
+ array('{alias}'=>$namespace)));
+ }
}
if(($pos=strrpos($alias,'.'))===false) // a simple class name
{
@@ -2787,7 +2793,7 @@ public function sendFile($fileName,$content,$mimeType=null,$terminate=true)
header('Pragma: public');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
- header("Content-type: $mimeType");
+ header("Content-Type: $mimeType");
header('Content-Length: '.$length);
header("Content-Disposition: attachment; filename=\"$fileName\"");
header('Content-Transfer-Encoding: binary');
@@ -2821,7 +2827,7 @@ public function xSendFile($filePath, $options=array())
if(!isset($options['xHeader']))
$options['xHeader']='X-Sendfile';
if($options['mimeType']!==null)
- header('Content-type: '.$options['mimeType']);
+ header('Content-Type: '.$options['mimeType']);
header('Content-Disposition: '.$disposition.'; filename="'.$options['saveName'].'"');
if(isset($options['addHeaders']))
{
@@ -4444,9 +4450,6 @@ class CHttpSession extends CApplicationComponent implements IteratorAggregate,Ar
public function init()
{
parent::init();
- // default session gc probability is 1%
- ini_set('session.gc_probability',1);
- ini_set('session.gc_divisor',100);
if($this->autoStart)
$this->open();
register_shutdown_function(array($this,'close'));

0 comments on commit f0fee98

Please sign in to comment.
Something went wrong with that request. Please try again.