Skip to content

Commit 095102c

Browse files
committed
Merge branch '1.2'
2 parents d71eb41 + fb10085 commit 095102c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+1279
-281
lines changed

app/config/core.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,11 @@
170170
*/
171171
Configure::write('Acl.classname', 'DbAcl');
172172
Configure::write('Acl.database', 'default');
173+
/**
174+
* If you are on PHP 5.3 uncomment this line and correct your server timezone
175+
* to fix the date & time related errors.
176+
*/
177+
//date_default_timezone_set('UTC');
173178
/**
174179
*
175180
* Cache Engine Configuration

app/webroot/test.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
* @lastmodified $Date$
2525
* @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
2626
*/
27-
error_reporting(E_ALL);
2827
set_time_limit(0);
2928
ini_set('memory_limit','128M');
3029
ini_set('display_errors', 1);

cake/VERSION.txt

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1 @@
1-
///////////////////////////////////////////////////////////////////////////////////////////////////////////
2-
// +---------------------------------------------------------------------------------------------------+ //
3-
// + $Id$
4-
// + Last Modified: $Date$
5-
// + Modified By: $LastChangedBy$
6-
// +---------------------------------------------------------------------------------------------------+ //
7-
///////////////////////////////////////////////////////////////////////////////////////////////////////////
8-
9-
1.2.4.8284
1+
1.2.5

cake/basics.php

Lines changed: 41 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,8 @@ function clone($object)
5050
* Loads configuration files. Receives a set of configuration files
5151
* to load.
5252
* Example:
53-
* <code>
54-
* config('config1', 'config2');
55-
* </code>
53+
*
54+
* `config('config1', 'config2');`
5655
*
5756
* @return boolean Success
5857
*/
@@ -79,9 +78,8 @@ function config() {
7978
* Loads component/components from LIBS. Takes optional number of parameters.
8079
*
8180
* Example:
82-
* <code>
83-
* uses('flay', 'time');
84-
* </code>
81+
*
82+
* `uses('flay', 'time');`
8583
*
8684
* @param string $name Filename without the .php part
8785
*/
@@ -212,14 +210,12 @@ function h($text, $charset = null) {
212210
* Returns an array of all the given parameters.
213211
*
214212
* Example:
215-
* <code>
216-
* a('a', 'b')
217-
* </code>
213+
*
214+
* `a('a', 'b')`
218215
*
219216
* Would return:
220-
* <code>
221-
* array('a', 'b')
222-
* </code>
217+
*
218+
* `array('a', 'b')`
223219
*
224220
* @return array Array of given parameters
225221
* @link http://book.cakephp.org/view/694/a
@@ -232,14 +228,12 @@ function a() {
232228
* Constructs associative array from pairs of arguments.
233229
*
234230
* Example:
235-
* <code>
236-
* aa('a','b')
237-
* </code>
231+
*
232+
* `aa('a','b')`
238233
*
239234
* Would return:
240-
* <code>
241-
* array('a'=>'b')
242-
* </code>
235+
*
236+
* `array('a'=>'b')`
243237
*
244238
* @return array Associative array
245239
* @link http://book.cakephp.org/view/695/aa
@@ -507,10 +501,9 @@ function cache($path, $data = null, $expires = '+1 day', $target = 'cache') {
507501
/**
508502
* Used to delete files in the cache directories, or clear contents of cache directories
509503
*
510-
* @param mixed $params As String name to be searched for deletion, if name is a directory all files in directory will be deleted.
511-
* If array, names to be searched for deletion.
512-
* If clearCache() without params, all files in app/tmp/cache/views will be deleted
513-
*
504+
* @param mixed $params As String name to be searched for deletion, if name is a directory all files in
505+
* directory will be deleted. If array, names to be searched for deletion. If clearCache() without params,
506+
* all files in app/tmp/cache/views will be deleted
514507
* @param string $type Directory in tmp/cache defaults to view directory
515508
* @param string $ext The file extension you are deleting
516509
* @return true if files found and deleted false otherwise
@@ -685,13 +678,14 @@ function __dn($domain, $singular, $plural, $count, $return = false) {
685678
* Valid categories are: LC_CTYPE, LC_NUMERIC, LC_TIME, LC_COLLATE, LC_MONETARY, LC_MESSAGES and LC_ALL.
686679
*
687680
* Note that the category must be specified with a numeric value, instead of the constant name. The values are:
688-
* LC_CTYPE 0
689-
* LC_NUMERIC 1
690-
* LC_TIME 2
691-
* LC_COLLATE 3
692-
* LC_MONETARY 4
693-
* LC_MESSAGES 5
694-
* LC_ALL 6
681+
*
682+
* - LC_ALL 0
683+
* - LC_COLLATE 1
684+
* - LC_CTYPE 2
685+
* - LC_MONETARY 3
686+
* - LC_NUMERIC 4
687+
* - LC_TIME 5
688+
* - LC_MESSAGES 6
695689
*
696690
* @param string $domain Domain
697691
* @param string $msg Message to translate
@@ -723,13 +717,14 @@ function __dc($domain, $msg, $category, $return = false) {
723717
* Valid categories are: LC_CTYPE, LC_NUMERIC, LC_TIME, LC_COLLATE, LC_MONETARY, LC_MESSAGES and LC_ALL.
724718
*
725719
* Note that the category must be specified with a numeric value, instead of the constant name. The values are:
726-
* LC_ALL 0
727-
* LC_COLLATE 1
728-
* LC_CTYPE 2
729-
* LC_MONETARY 3
730-
* LC_NUMERIC 4
731-
* LC_TIME 5
732-
* LC_MESSAGES 6
720+
*
721+
* - LC_ALL 0
722+
* - LC_COLLATE 1
723+
* - LC_CTYPE 2
724+
* - LC_MONETARY 3
725+
* - LC_NUMERIC 4
726+
* - LC_TIME 5
727+
* - LC_MESSAGES 6
733728
*
734729
* @param string $domain Domain
735730
* @param string $singular Singular string to translate
@@ -758,13 +753,14 @@ function __dcn($domain, $singular, $plural, $count, $category, $return = false)
758753
* Valid categories are: LC_CTYPE, LC_NUMERIC, LC_TIME, LC_COLLATE, LC_MONETARY, LC_MESSAGES and LC_ALL.
759754
*
760755
* Note that the category must be specified with a numeric value, instead of the constant name. The values are:
761-
* LC_CTYPE 0
762-
* LC_NUMERIC 1
763-
* LC_TIME 2
764-
* LC_COLLATE 3
765-
* LC_MONETARY 4
766-
* LC_MESSAGES 5
767-
* LC_ALL 6
756+
*
757+
* - LC_ALL 0
758+
* - LC_COLLATE 1
759+
* - LC_CTYPE 2
760+
* - LC_MONETARY 3
761+
* - LC_NUMERIC 4
762+
* - LC_TIME 5
763+
* - LC_MESSAGES 6
768764
*
769765
* @param string $msg String to translate
770766
* @param integer $category Category
@@ -926,9 +922,8 @@ function http_build_query($data, $prefix = null, $argSep = null, $baseKey = null
926922
* Wraps ternary operations. If $condition is a non-empty value, $val1 is returned, otherwise $val2.
927923
* Don't use for isset() conditions, or wrap your variable with @ operator:
928924
* Example:
929-
* <code>
930-
* ife(isset($variable), @$variable, 'default');
931-
* </code>
925+
*
926+
* `ife(isset($variable), @$variable, 'default');`
932927
*
933928
* @param mixed $condition Conditional expression
934929
* @param mixed $val1 Value to return in case condition matches

cake/bootstrap.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
if (!defined('PHP5')) {
2828
define('PHP5', (PHP_VERSION >= 5));
2929
}
30+
if (!defined('E_DEPRECATED')) {
31+
define('E_DEPRECATED', 8192);
32+
}
33+
error_reporting(E_ALL & ~E_DEPRECATED);
3034
/**
3135
* Configuration, directory layout and standard libraries
3236
*/

cake/console/cake.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
* @lastmodified $Date$
2626
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
2727
*/
28+
if (!defined('E_DEPRECATED')) {
29+
define('E_DEPRECATED', 8192);
30+
}
2831
/**
2932
* Shell dispatcher
3033
*
@@ -138,7 +141,7 @@ function __construct($args = array()) {
138141
function __initConstants() {
139142
if (function_exists('ini_set')) {
140143
ini_set('display_errors', '1');
141-
ini_set('error_reporting', E_ALL);
144+
ini_set('error_reporting', E_ALL & ~E_DEPRECATED);
142145
ini_set('html_errors', false);
143146
ini_set('implicit_flush', true);
144147
ini_set('max_execution_time', 0);
@@ -204,7 +207,7 @@ function __buildPaths() {
204207
}
205208

206209
foreach ($pluginPaths as $pluginPath) {
207-
$Folder =& new Folder($pluginPath);
210+
$Folder = new Folder($pluginPath);
208211
list($plugins,) = $Folder->read(false, true);
209212
foreach ((array)$plugins as $plugin) {
210213
$path = $pluginPath . Inflector::underscore($plugin) . DS . 'vendors' . DS . 'shells' . DS;

cake/console/libs/api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function main() {
117117
$this->out($list);
118118

119119
$methods = array_keys($parsed);
120-
while ($number = $this->in(__('Select a number to see the more information about a specific method. q to quit. l to list.', true), null, 'q')) {
120+
while ($number = strtolower($this->in(__('Select a number to see the more information about a specific method. q to quit. l to list.', true), null, 'q'))) {
121121
if ($number === 'q') {
122122
$this->out(__('Done', true));
123123
$this->_stop();

cake/console/libs/i18n.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,18 +76,18 @@ function main() {
7676
$this->out(__('[H]elp', true));
7777
$this->out(__('[Q]uit', true));
7878

79-
$choice = strtoupper($this->in(__('What would you like to do?', true), array('E', 'I', 'H', 'Q')));
79+
$choice = strtolower($this->in(__('What would you like to do?', true), array('E', 'I', 'H', 'Q')));
8080
switch ($choice) {
81-
case 'E':
81+
case 'e':
8282
$this->Extract->execute();
8383
break;
84-
case 'I':
84+
case 'i':
8585
$this->initdb();
8686
break;
87-
case 'H':
87+
case 'h':
8888
$this->help();
8989
break;
90-
case 'Q':
90+
case 'q':
9191
exit(0);
9292
break;
9393
default:

0 commit comments

Comments
 (0)