Skip to content

Commit ffab734

Browse files
committed
Camelize file names in Errors
1 parent aeb510e commit ffab734

6 files changed

Lines changed: 8 additions & 8 deletions

lib/Cake/View/Errors/missing_behavior_class.ctp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
</p>
2424
<p class="error">
2525
<strong><?php echo __d('cake_dev', 'Error'); ?>: </strong>
26-
<?php echo __d('cake_dev', 'Create the class below in file: %s', APP_DIR . DS . 'Model' . DS . 'Behavior' . DS . $file); ?>
26+
<?php echo __d('cake_dev', 'Create the class below in file: %s', APP_DIR . DS . 'Model' . DS . 'Behavior' . DS . Inflector::camelize($file)); ?>
2727
</p>
2828
<pre>
2929
&lt;?php

lib/Cake/View/Errors/missing_behavior_file.ctp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
<h2><?php echo __d('cake_dev', 'Missing Behavior File'); ?></h2>
2020
<p class="error">
2121
<strong><?php echo __d('cake_dev', 'Error'); ?>: </strong>
22-
<?php echo __d('cake_dev', 'The Behavior file %s can not be found or does not exist.', APP_DIR . DS . 'Model' . DS . 'Behavior' . DS . $file); ?>
22+
<?php echo __d('cake_dev', 'The Behavior file %s can not be found or does not exist.', APP_DIR . DS . 'Model' . DS . 'Behavior' . DS . Inflector::camelize($file)); ?>
2323
</p>
2424
<p class="error">
2525
<strong><?php echo __d('cake_dev', 'Error'); ?>: </strong>
26-
<?php echo __d('cake_dev', 'Create the class below in file: %s', APP_DIR . DS . 'Model' . DS . 'Behavior' . DS . $file); ?>
26+
<?php echo __d('cake_dev', 'Create the class below in file: %s', APP_DIR . DS . 'Model' . DS . 'Behavior' . DS . Inflector::camelize($file)); ?>
2727
</p>
2828
<pre>
2929
&lt;?php

lib/Cake/View/Errors/missing_component_class.ctp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
</p>
2424
<p class="error">
2525
<strong><?php echo __d('cake_dev', 'Error'); ?>: </strong>
26-
<?php echo __d('cake_dev', 'Create the class %s in file: %s', '<em>' . $class . '</em>', APP_DIR . DS . 'Controller' . DS . 'Component' . DS . $file); ?>
26+
<?php echo __d('cake_dev', 'Create the class %s in file: %s', '<em>' . $class . '</em>', APP_DIR . DS . 'Controller' . DS . 'Component' . DS . Inflector::camelize($file)); ?>
2727
</p>
2828
<pre>
2929
&lt;?php

lib/Cake/View/Errors/missing_component_file.ctp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
</p>
2424
<p class="error">
2525
<strong><?php echo __d('cake_dev', 'Error'); ?>: </strong>
26-
<?php echo __d('cake_dev', 'Create the class %s in file: %s', '<em>' . $class . '</em>', APP_DIR . DS . 'Controller' . DS . 'Component' . DS . $file); ?>
26+
<?php echo __d('cake_dev', 'Create the class %s in file: %s', '<em>' . $class . '</em>', APP_DIR . DS . 'Controller' . DS . 'Component' . DS . Inflector::camelize($file)); ?>
2727
</p>
2828
<pre>
2929
&lt;?php

lib/Cake/View/Errors/missing_helper_class.ctp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
</p>
2424
<p class="error">
2525
<strong><?php echo __d('cake_dev', 'Error'); ?>: </strong>
26-
<?php echo __d('cake_dev', 'Create the class below in file: %s', APP_DIR . DS . 'View' . DS . 'Helper' . DS . $file); ?>
26+
<?php echo __d('cake_dev', 'Create the class below in file: %s', APP_DIR . DS . 'View' . DS . 'Helper' . DS . Inflector::camelize($file)); ?>
2727
</p>
2828
<pre>
2929
&lt;?php

lib/Cake/View/Errors/missing_helper_file.ctp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
<h2><?php echo __d('cake_dev', 'Missing Helper File'); ?></h2>
2020
<p class="error">
2121
<strong><?php echo __d('cake_dev', 'Error'); ?>: </strong>
22-
<?php echo __d('cake_dev', 'The helper file %s can not be found or does not exist.', APP_DIR . DS . 'View' . DS . 'Helper' . DS . $file); ?>
22+
<?php echo __d('cake_dev', 'The helper file %s can not be found or does not exist.', APP_DIR . DS . 'View' . DS . 'Helper' . DS . Inflector::camelize($file)); ?>
2323
</p>
2424
<p class="error">
2525
<strong><?php echo __d('cake_dev', 'Error'); ?>: </strong>
26-
<?php echo __d('cake_dev', 'Create the class below in file: %s', APP_DIR . DS . 'View' . DS . 'Helper' . DS . $file); ?>
26+
<?php echo __d('cake_dev', 'Create the class below in file: %s', APP_DIR . DS . 'View' . DS . 'Helper' . DS . Inflector::camelize($file)); ?>
2727
</p>
2828
<pre>
2929
&lt;?php

0 commit comments

Comments
 (0)