From 3c7e12cbfecb34036ac4ff2f2744140f59185eff Mon Sep 17 00:00:00 2001 From: Yanick Witschi Date: Mon, 30 Mar 2015 12:34:54 +0200 Subject: [PATCH] Renamed isAliasRegistered() to isRegisteredAlias() --- system/modules/core/library/Contao/Model.php | 4 ++-- system/modules/core/library/Contao/Model/Registry.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/system/modules/core/library/Contao/Model.php b/system/modules/core/library/Contao/Model.php index f3022b7f05..9e6abd3c40 100644 --- a/system/modules/core/library/Contao/Model.php +++ b/system/modules/core/library/Contao/Model.php @@ -713,7 +713,7 @@ public function onRegister(\Model\Registry $registry) foreach (static::getUniqueFields() as $strColumn) { $varAliasValue = $this->{$strColumn}; - if (!$registry->isAliasRegistered($this, $strColumn, $varAliasValue)) + if (!$registry->isRegisteredAlias($this, $strColumn, $varAliasValue)) { $registry->registerAlias($this, $strColumn, $varAliasValue); } @@ -732,7 +732,7 @@ public function onUnregister(\Model\Registry $registry) foreach (static::getUniqueFields() as $strColumn) { $varAliasValue = $this->{$strColumn}; - if ($registry->isAliasRegistered($this, $strColumn, $varAliasValue)) + if ($registry->isRegisteredAlias($this, $strColumn, $varAliasValue)) { $registry->unregisterAlias($this, $strColumn, $varAliasValue); } diff --git a/system/modules/core/library/Contao/Model/Registry.php b/system/modules/core/library/Contao/Model/Registry.php index 8d2058a4f0..4ae6fbe968 100644 --- a/system/modules/core/library/Contao/Model/Registry.php +++ b/system/modules/core/library/Contao/Model/Registry.php @@ -280,7 +280,7 @@ public function unregisterAlias(\Model $objModel, $strAlias, $varValue) * * @return boolean True if the model is registered */ - public function isAliasRegistered(\Model $objModel, $strAlias, $varValue) + public function isRegisteredAlias(\Model $objModel, $strAlias, $varValue) { $strTable = $objModel->getTable();