Update DataMapper even if it's not needed
This commit is contained in:
@@ -14,20 +14,9 @@ $config['created_field'] = 'created';
|
||||
$config['updated_field'] = 'updated';
|
||||
$config['local_time'] = FALSE;
|
||||
$config['unix_timestamp'] = FALSE;
|
||||
$config['timestamp_format'] = '';
|
||||
$config['lang_file_format'] = 'model_${model}';
|
||||
$config['field_label_lang_format'] = '${model}_${field}';
|
||||
$config['auto_transaction'] = FALSE;
|
||||
$config['auto_populate_has_many'] = FALSE;
|
||||
$config['auto_populate_has_one'] = FALSE;
|
||||
$config['all_array_uses_ids'] = FALSE;
|
||||
// set to FALSE to use the same DB instance across the board (breaks subqueries)
|
||||
// Set to any acceptable parameters to $CI->database() to override the default.
|
||||
$config['db_params'] = '';
|
||||
// Uncomment to enable the production cache
|
||||
// $config['production_cache'] = 'datamapper/cache';
|
||||
$config['extensions_path'] = 'datamapper';
|
||||
$config['extensions'] = array();
|
||||
|
||||
/* End of file datamapper.php */
|
||||
/* Location: ./application/config/datamapper.php */
|
||||
@@ -11,7 +11,7 @@
|
||||
* @subpackage Helpers
|
||||
* @category Helpers
|
||||
* @author ExpressionEngine Dev Team, stensi
|
||||
* @link http://codeigniter.com/user_guide/helpers/inflector_helper.html
|
||||
* @link http://codeigniter.com/user_guide/helpers/directory_helper.html
|
||||
*/
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
@@ -74,7 +74,7 @@ if ( ! function_exists('singular'))
|
||||
}
|
||||
else
|
||||
{
|
||||
if ($end1 == 's' && $end2 != 'us' && $end2 != 'ss')
|
||||
if ($end1 == 's')
|
||||
{
|
||||
$str = substr($str, 0, -1);
|
||||
}
|
||||
@@ -102,7 +102,6 @@ if ( ! function_exists('plural'))
|
||||
{
|
||||
$str = strtolower(trim($str));
|
||||
$end3 = substr($str, -3);
|
||||
$end2 = substr($str, -2);
|
||||
$end1 = substr($str, -1);
|
||||
|
||||
if ($end3 == 'eau')
|
||||
@@ -130,30 +129,10 @@ if ( ! function_exists('plural'))
|
||||
$str = substr($str, 0, -1).'ves';
|
||||
}
|
||||
elseif ($end1 == 'y')
|
||||
{
|
||||
if(preg_match('#[aeiou]y#i', $end2))
|
||||
{
|
||||
// ays, oys, etc.
|
||||
$str = $str . 's';
|
||||
}
|
||||
else
|
||||
{
|
||||
$str = substr($str, 0, -1).'ies';
|
||||
}
|
||||
}
|
||||
elseif ($end1 == 'o')
|
||||
{
|
||||
if(preg_match('#[aeiou]o#i', $end2))
|
||||
{
|
||||
// oos, etc.
|
||||
$str = $str . 's';
|
||||
}
|
||||
else
|
||||
{
|
||||
$str .= 'es';
|
||||
}
|
||||
}
|
||||
elseif ($end1 == 'x' || in_array($end2, array('ss', 'ch', 'sh')) )
|
||||
elseif (in_array($end1, array('h', 'o', 'x')))
|
||||
{
|
||||
$str .= 'es';
|
||||
}
|
||||
|
||||
@@ -17,9 +17,5 @@ $lang['related_required'] = 'The %s relationship is required.';
|
||||
$lang['related_min_size'] = 'The %s relationship must be at least %s.';
|
||||
$lang['related_max_size'] = 'The %s relationship can not exceed %s.';
|
||||
|
||||
$lang['dm_save_rel_failed'] = 'The %s relationship is not properly defined.';
|
||||
$lang['dm_save_rel_nothis'] = 'Unable to save the %s relationship: This object is not saved.';
|
||||
$lang['dm_save_rel_noobj'] = 'Unable to save the %s relationship: The related object was not saved.';
|
||||
|
||||
/* End of file datamapper_lang.php */
|
||||
/* Location: ./application/language/english/datamapper_lang.php */
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user