Update some commonly used methods to use ModuleModel::getMidByModuleSrl()

This commit is contained in:
Kijin Sung 2020-10-01 16:34:07 +09:00
parent 7d6e30f936
commit 01424ddd2d
3 changed files with 7 additions and 12 deletions

View file

@ -522,7 +522,7 @@ class commentItem extends BaseObject
function getPermanentUrl()
{
$mid = ModuleModel::getModuleInfoByModuleSrl($this->get('module_srl'))->mid;
$mid = ModuleModel::getMidByModuleSrl($this->get('module_srl'));
return getFullUrl('', 'mid', $mid, 'document_srl', $this->get('document_srl')) . '#comment_' . $this->get('comment_srl');
}