From 042d70e9db63503c1832d5490ef2d61821fbe24a Mon Sep 17 00:00:00 2001 From: Tomasz Narloch Date: Tue, 5 Jun 2018 20:51:32 +0200 Subject: [PATCH] Replace UCMType::getType() by UCMType::getTypeByAlias($this->alias) --- libraries/src/UCM/UCMType.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/src/UCM/UCMType.php b/libraries/src/UCM/UCMType.php index 456e112c5481a..31844b24cd99d 100644 --- a/libraries/src/UCM/UCMType.php +++ b/libraries/src/UCM/UCMType.php @@ -93,7 +93,7 @@ public function __construct($alias = null, \JDatabaseDriver $database = null, Ba // Make the best guess we can in the absence of information. $this->alias = $alias ?: $app->input->get('option') . '.' . $app->input->get('view'); - $this->type = $this->getType(); + $this->type = $this->getTypeByAlias($this->alias); } /** @@ -109,7 +109,7 @@ public function getType($pk = null) { if (!$pk) { - $pk = $this->getTypeId(); + return $this->getTypeByAlias($this->alias); } $query = $this->db->getQuery(true);