Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Renamed isAliasRegistered() to isRegisteredAlias()
Browse files Browse the repository at this point in the history
  • Loading branch information
Toflar committed Mar 30, 2015
1 parent 342d728 commit 3c7e12c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions system/modules/core/library/Contao/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion system/modules/core/library/Contao/Model/Registry.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 3c7e12c

Please sign in to comment.