mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-05-31 12:00:12 +02:00
Allow us to find out where /public is to be found
This commit is contained in:
parent
573bd1bde1
commit
127b7ad389
@ -233,6 +233,18 @@ abstract class ApplicationBootstrap
|
|||||||
return $this->getDirWithSubDir($this->configDir, $subdir);
|
return $this->getDirWithSubDir($this->configDir, $subdir);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the path to the bootstrapping directory.
|
||||||
|
*
|
||||||
|
* This is usually /public for Web and EmbeddedWeb
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getBootstrapDirecory()
|
||||||
|
{
|
||||||
|
return dirname($_SERVER['SCRIPT_FILENAME']);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper to glue directories together
|
* Helper to glue directories together
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user