Fix #1574: MessageCommand::extractMessages fails to ignore invalid category definitions
Fix #109: change round() to number_format() and fix with optional digit in decimal digit part.
Fix #109: change round() to number_format() and fix with optional digit in decimal digit part.
Fix #109: change round() to number_format() and fix with optional digit in decimal digit part.
Store parsing of Accept-Language header for public access and correct preferred language order

By convention, when multiple languages are given with the same preference value in the Accept-Language header then the order of preference should correspond to the order in which they are given.
Currently CHttpRequest does not define any preference according to order when sorting languages after having parsed them.
This update creates a new variable to allow access to the sorted list of preferred languages (useful for content negotiation), and adds a very small decremental value to each language when parsing, so that earlier languages are given priority over later ones in the sort rather than relying on PHP's arsort to arbitrarily sort equal values.
Test with an Accept-Language header of "ru, en, en-GB, zh-Hans, ja, zh-Hant, fr, de, nl, it, es" (ru should be the preferred language rather than de).
Merge remote-tracking branch 'upstream/master' into fix109
Update framework/web/CHttpRequest.php

Modified sorting logic to use more expensive, but accurate taking into account of each language's position in the header.
For a language that is present more than once, the highest q value will be used (or the highest position if q values are equal).
getPreferredLanguages() will now always return an array (empty if no / incorrect header is set).
Update framework/web/CHttpRequest.php

Updated the name of the private property used to store the list of accepted languages (no further need for a store for the preferred language since we just take the first value from this list).
Bug #1673: CHttpRequest: modified the sort criteria applied to the Accept-Language header to give preference to order of appearance (Rupert-RR)
Merge pull request #1721 from softark/docs-ja

docs/guide/basics.namespace.txt typo fixed
Replaced the closure used for the usort with a create_function call

Yii should work under PHP5.1, and closures were only added by PHP5.3, so a create_function call is used instead to preserve compatibility.
Bugfix: issue #1726

Undefined variable: json




yii-1.1.12.b600af/framework/web/helpers/CJSON.php(332)




324     public static function decode($str, $useArray=true)
325     {
326         if(function_exists('json_decode'))
327             $json = json_decode($str,$useArray);
328 
329         // based on investigation, native fails sometimes returning null.
330         // see: http://gggeek.altervista.org/sw/article_20070425.html
331         // As of PHP 5.3.6 it still fails on some valid JSON strings
332         if(!is_null($json))
333             return $json;
Update framework/web/helpers/CJSON.php

Placed bracket on the next line to keep code style consistency.
Update CHANGELOG
Fixes #1538 added CListView->ajaxUpdateError
need to pass ajaxUpdateError to options
added posibility for custom native error method
changelog
Merge pull request #1733 from mdomba/1538-CListView-ajaxUpdateError

Issue #1538 CListView ajax update error
[ci skip]
Fixes issue #1441 updated yiigridview.js method calls with the new syntax