Rename getBootstrapDirecory() to getBootstrapDirectory()
This commit is contained in:
parent
5da82a3164
commit
75475b1684
|
@ -114,11 +114,11 @@ abstract class ApplicationBootstrap
|
|||
protected function __construct($baseDir = null, $configDir = null)
|
||||
{
|
||||
if ($baseDir === null) {
|
||||
$baseDir = dirname($this->getBootstrapDirecory());
|
||||
$baseDir = dirname($this->getBootstrapDirectory());
|
||||
}
|
||||
$this->baseDir = $baseDir;
|
||||
if (! defined('ICINGAWEB_BASEDIR')) {
|
||||
define('ICINGAWEB_BASEDIR', dirname($this->getBootstrapDirecory()));
|
||||
define('ICINGAWEB_BASEDIR', dirname($this->getBootstrapDirectory()));
|
||||
}
|
||||
define('ICINGAWEB_VENDORS', ICINGAWEB_BASEDIR . '/library/vendor');
|
||||
define('ICINGAWEB_APPDIR', ICINGAWEB_BASEDIR . '/application');
|
||||
|
@ -265,7 +265,7 @@ abstract class ApplicationBootstrap
|
|||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBootstrapDirecory()
|
||||
public function getBootstrapDirectory()
|
||||
{
|
||||
return dirname(realpath($_SERVER['SCRIPT_FILENAME']));
|
||||
}
|
||||
|
|
|
@ -49,7 +49,7 @@ class Pdf extends DOMPDF
|
|||
$layout->content = $controller->getResponse();
|
||||
$html = $layout->render();
|
||||
$imgDir = Url::fromPath('img');
|
||||
$html = preg_replace('~src="' . $imgDir . '/~', 'src="' . Icinga::app()->getBootstrapDirecory() . '/img/', $html);
|
||||
$html = preg_replace('~src="' . $imgDir . '/~', 'src="' . Icinga::app()->getBootstrapDirectory() . '/img/', $html);
|
||||
$html = preg_replace('~src="/svg/chart.php(.*)"~', 'class="icon" src="http://master1.com/png/chart.php$1"', $html);
|
||||
$this->load_html($html);
|
||||
$this->render();
|
||||
|
|
|
@ -67,7 +67,7 @@ class JavaScript
|
|||
public static function send($minified = false)
|
||||
{
|
||||
header('Content-Type: application/javascript');
|
||||
$basedir = Icinga::app()->getBootstrapDirecory();
|
||||
$basedir = Icinga::app()->getBootstrapDirectory();
|
||||
|
||||
$js = $out = '';
|
||||
$min = $minified ? '.min' : '';
|
||||
|
|
|
@ -31,7 +31,7 @@ class StyleSheet
|
|||
public static function compileForPdf()
|
||||
{
|
||||
$less = new LessCompiler();
|
||||
$basedir = Icinga::app()->getBootstrapDirecory();
|
||||
$basedir = Icinga::app()->getBootstrapDirectory();
|
||||
foreach (self::$lessFiles as $file) {
|
||||
$less->addFile($basedir . '/' . $file);
|
||||
}
|
||||
|
@ -57,7 +57,7 @@ class StyleSheet
|
|||
public static function send($minified = false)
|
||||
{
|
||||
$app = Icinga::app();
|
||||
$basedir = $app->getBootstrapDirecory();
|
||||
$basedir = $app->getBootstrapDirectory();
|
||||
foreach (self::$lessFiles as $file) {
|
||||
$lessFiles[] = $basedir . '/' . $file;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue