diff --git a/app/Config/bootstrap.php b/app/Config/bootstrap.php
index 03cda9cae..1eace32fb 100644
--- a/app/Config/bootstrap.php
+++ b/app/Config/bootstrap.php
@@ -64,7 +64,7 @@ Cache::config('default', array('engine' => 'File'));
* advanced ways of loading plugins
*
* CakePlugin::loadAll(); // Loads all plugins at once
- * CakePlugin::load('DebugKit'); //Loads a single plugin named DebugKit
+ * CakePlugin::load('DebugKit'); // Loads a single plugin named DebugKit
*/
/**
diff --git a/app/View/Pages/home.ctp b/app/View/Pages/home.ctp
index c3f98b106..67078a984 100644
--- a/app/View/Pages/home.ctp
+++ b/app/View/Pages/home.ctp
@@ -138,7 +138,7 @@ endif;
echo '';
echo __d('cake_dev', 'DebugKit is not installed. It will help you inspect and debug different aspects of your application.');
echo '
';
- echo __d('cake_dev', 'You can install it from %s', $this->Html->link('GitHub', 'https://github.com/cakephp/debug_kit'));
+ echo __d('cake_dev', 'You can install it from %s', $this->Html->link('GitHub', 'https://github.com/cakephp/debug_kit/tree/2.2'));
echo '';
endif;
?>
@@ -178,7 +178,7 @@ You can also add some CSS styles for your pages at: %s.',
-
- Html->link('DebugKit', 'https://github.com/cakephp/debug_kit') ?>:
+ Html->link('DebugKit', 'https://github.com/cakephp/debug_kit/tree/2.2') ?>:
-
diff --git a/composer.json b/composer.json
index d5eae1773..5c2ac6692 100644
--- a/composer.json
+++ b/composer.json
@@ -23,7 +23,7 @@
},
"require-dev": {
"phpunit/phpunit": "3.7.*",
- "cakephp/debug_kit" : "2.2.*",
+ "cakephp/debug_kit" : "^2.2.0",
"cakephp/cakephp-codesniffer": "^1.0.0"
},
"bin": [
diff --git a/lib/Cake/Console/Templates/skel/Config/bootstrap.php b/lib/Cake/Console/Templates/skel/Config/bootstrap.php
index 8b54c36ec..0cf81bec3 100644
--- a/lib/Cake/Console/Templates/skel/Config/bootstrap.php
+++ b/lib/Cake/Console/Templates/skel/Config/bootstrap.php
@@ -55,7 +55,7 @@ Cache::config('default', array('engine' => 'File'));
* advanced ways of loading plugins
*
* CakePlugin::loadAll(); // Loads all plugins at once
- * CakePlugin::load('DebugKit'); //Loads a single plugin named DebugKit
+ * CakePlugin::load('DebugKit'); // Loads a single plugin named DebugKit
*/
/**
diff --git a/lib/Cake/Console/Templates/skel/View/Pages/home.ctp b/lib/Cake/Console/Templates/skel/View/Pages/home.ctp
index 5bac4537f..ad84a2553 100644
--- a/lib/Cake/Console/Templates/skel/View/Pages/home.ctp
+++ b/lib/Cake/Console/Templates/skel/View/Pages/home.ctp
@@ -141,7 +141,7 @@ if (isset($filePresent)):
echo '';
echo __d('cake_dev', 'DebugKit is not installed. It will help you inspect and debug different aspects of your application.');
echo '
';
- echo __d('cake_dev', 'You can install it from %s', $this->Html->link('GitHub', 'https://github.com/cakephp/debug_kit'));
+ echo __d('cake_dev', 'You can install it from %s', $this->Html->link('GitHub', 'https://github.com/cakephp/debug_kit/tree/2.2'));
echo '';
endif;
?>
@@ -181,7 +181,7 @@ You can also add some CSS styles for your pages at: %s.',
-
- Html->link('DebugKit', 'https://github.com/cakephp/debug_kit') ?>:
+ Html->link('DebugKit', 'https://github.com/cakephp/debug_kit/tree/2.2') ?>:
-
diff --git a/lib/Cake/Network/Email/CakeEmail.php b/lib/Cake/Network/Email/CakeEmail.php
index 823c85f65..027cd539d 100644
--- a/lib/Cake/Network/Email/CakeEmail.php
+++ b/lib/Cake/Network/Email/CakeEmail.php
@@ -360,7 +360,7 @@ class CakeEmail {
if ($config) {
$this->config($config);
- } elseif (class_exists($this->_configClass) && config('email')) {
+ } elseif (config('email') && class_exists($this->_configClass)) {
$this->_configInstance = new $this->_configClass();
if (isset($this->_configInstance->default)) {
$this->config('default');
diff --git a/lib/Cake/Test/Case/Utility/InflectorTest.php b/lib/Cake/Test/Case/Utility/InflectorTest.php
index 638ba54dc..9df596e78 100644
--- a/lib/Cake/Test/Case/Utility/InflectorTest.php
+++ b/lib/Cake/Test/Case/Utility/InflectorTest.php
@@ -128,7 +128,7 @@ class InflectorTest extends CakeTestCase {
$this->assertEquals(Inflector::singularize('stimuli'), 'stimulus');
$this->assertEquals(Inflector::singularize('syllabi'), 'syllabus');
$this->assertEquals(Inflector::singularize('termini'), 'terminus');
- $this->assertEquals(Inflector::singularize('viri'), 'virus');
+ $this->assertEquals(Inflector::singularize('viruses'), 'virus');
$this->assertEquals(Inflector::singularize('people'), 'person');
$this->assertEquals(Inflector::singularize('gloves'), 'glove');
$this->assertEquals(Inflector::singularize('doves'), 'dove');
@@ -246,7 +246,7 @@ class InflectorTest extends CakeTestCase {
$this->assertEquals(Inflector::pluralize('stimulus'), 'stimuli');
$this->assertEquals(Inflector::pluralize('syllabus'), 'syllabi');
$this->assertEquals(Inflector::pluralize('terminus'), 'termini');
- $this->assertEquals(Inflector::pluralize('virus'), 'viri');
+ $this->assertEquals(Inflector::pluralize('virus'), 'viruses');
$this->assertEquals(Inflector::pluralize('person'), 'people');
$this->assertEquals(Inflector::pluralize('people'), 'people');
$this->assertEquals(Inflector::pluralize('glove'), 'gloves');
diff --git a/lib/Cake/Utility/Inflector.php b/lib/Cake/Utility/Inflector.php
index 6644661c3..40b9de281 100644
--- a/lib/Cake/Utility/Inflector.php
+++ b/lib/Cake/Utility/Inflector.php
@@ -47,7 +47,7 @@ class Inflector {
'/(? '\1en',
'/(c)hild$/i' => '\1hildren',
'/(buffal|tomat)o$/i' => '\1\2oes',
- '/(alumn|bacill|cact|foc|fung|nucle|radi|stimul|syllab|termin|vir)us$/i' => '\1i',
+ '/(alumn|bacill|cact|foc|fung|nucle|radi|stimul|syllab|termin)us$/i' => '\1i',
'/us$/i' => 'uses',
'/(alias)$/i' => '\1es',
'/(ax|cris|test)is$/i' => '\1es',