mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-22 18:18:46 +02:00
N°3606: renaming
This commit is contained in:
@@ -105,7 +105,7 @@ abstract class Controller
|
||||
*/
|
||||
public function InitFromModule()
|
||||
{
|
||||
$sModulePath = dirname(dirname($this->getDir()));
|
||||
$sModulePath = dirname(dirname($this->GetDir()));
|
||||
$this->SetModuleName(basename($sModulePath));
|
||||
$this->SetViewPath($sModulePath.'/view');
|
||||
try
|
||||
@@ -140,7 +140,7 @@ abstract class Controller
|
||||
$this->m_sModule = $sModule;
|
||||
}
|
||||
|
||||
private function getDir()
|
||||
private function GetDir()
|
||||
{
|
||||
return dirname((new ReflectionClass(static::class))->getFileName());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user