mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Merge pull request #377 from shama/2.0
Fix typo on TranslateBehavior error message
This commit is contained in:
commit
102b96f25c
1 changed files with 1 additions and 1 deletions
|
@ -420,7 +420,7 @@ class TranslateBehavior extends ModelBehavior {
|
||||||
foreach (array('hasOne', 'hasMany', 'belongsTo', 'hasAndBelongsToMany') as $type) {
|
foreach (array('hasOne', 'hasMany', 'belongsTo', 'hasAndBelongsToMany') as $type) {
|
||||||
if (isset($model->{$type}[$association]) || isset($model->__backAssociation[$type][$association])) {
|
if (isset($model->{$type}[$association]) || isset($model->__backAssociation[$type][$association])) {
|
||||||
trigger_error(
|
trigger_error(
|
||||||
__d('cake_dev', 'Association %s is already binded to model %s', $association, $model->alias),
|
__d('cake_dev', 'Association %s is already bound to model %s', $association, $model->alias),
|
||||||
E_USER_ERROR
|
E_USER_ERROR
|
||||||
);
|
);
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue