Added bootstrap.php for Autoloader and Debugger.
This commit is contained in:
parent
a81734cdc3
commit
4bee231cc6
@ -2,6 +2,7 @@
|
||||
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
||||
# All rights reserved. See LICENSE file for licensing details
|
||||
|
||||
require_once __DIR__ . '/lib/bootstrap.php';
|
||||
|
||||
// We need to set this to return a 200 since we use .htaccess ErrorDocument
|
||||
// rules to handle archives.
|
||||
|
11
lib/bootstrap.php
Normal file
11
lib/bootstrap.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
// Serendipity
|
||||
// See LICENSE file for license information.
|
||||
|
||||
require_once __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
// TODO: REMOVE WHEN DONE DEVELOPING
|
||||
$whoops = new \Whoops\Run();
|
||||
$whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler());
|
||||
$whoops->register();
|
@ -2,6 +2,8 @@
|
||||
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
|
||||
# All rights reserved. See LICENSE file for licensing details
|
||||
|
||||
require_once __DIR__ . '/lib/bootstrap.php';
|
||||
|
||||
define('IN_installer', true);
|
||||
define('IN_upgrader', true);
|
||||
define('IN_serendipity', true);
|
||||
|
@ -241,16 +241,6 @@ if (function_exists('get_include_path')) {
|
||||
$old_include = @ini_get('include_path');
|
||||
}
|
||||
|
||||
|
||||
require_once("vendor/autoload.php");
|
||||
|
||||
|
||||
if ($serendipity['production'] !== true) {
|
||||
$whoops = new \Whoops\Run;
|
||||
$whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
|
||||
$whoops->register();
|
||||
}
|
||||
|
||||
$new_include = ($serendipity['use_PEAR'] ? $old_include . PATH_SEPARATOR : '')
|
||||
. S9Y_INCLUDE_PATH . 'bundled-libs/' . PATH_SEPARATOR
|
||||
. $serendipity['serendipityPath'] . PATH_SEPARATOR
|
||||
|
Loading…
x
Reference in New Issue
Block a user