mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-12-03 05:41:52 +09:00
Merge pull request #461 from BelleNottelling/patch-1
Be descriptive if module folder doesn't match expected
This commit is contained in:
1 file changed
+6
-1
@@ -301,6 +301,11 @@ class Box_Mod
|
||||
|
||||
private function _getModPath()
|
||||
{
|
||||
return BB_PATH_MODS . DIRECTORY_SEPARATOR . ucfirst($this->mod) . DIRECTORY_SEPARATOR;
|
||||
$modPath = BB_PATH_MODS . DIRECTORY_SEPARATOR . ucfirst($this->mod) . DIRECTORY_SEPARATOR;
|
||||
if(is_dir($modPath)){
|
||||
return $modPath;
|
||||
}else{
|
||||
throw new Box_Exception("Error: module $this->mod path appears to be invalid. Please ensure the module folder is named " . ucfirst($this->mod));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user