mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-03 01:52:40 +00:00
remove LIBS constant
libs always means the Cake lib - so use the CAKE constant
This commit is contained in:
parent
ff2d9e244a
commit
afa8f6b441
67 changed files with 571 additions and 434 deletions
|
@ -51,7 +51,7 @@ if (!defined('APP')) {
|
|||
/**
|
||||
* Path to the application's libs directory.
|
||||
*/
|
||||
define('APPLIBS', APP.'Lib'.DS);
|
||||
define('APPCAKE', APP.'Lib'.DS);
|
||||
|
||||
/**
|
||||
* Path to the configuration files directory.
|
||||
|
@ -60,11 +60,6 @@ if (!defined('CONFIGS')) {
|
|||
define('CONFIGS', APP.'Config'.DS);
|
||||
}
|
||||
|
||||
/**
|
||||
* Path to the libs directory.
|
||||
*/
|
||||
define('LIBS', CAKE);
|
||||
|
||||
/**
|
||||
* Path to the public CSS directory.
|
||||
*/
|
||||
|
@ -140,9 +135,9 @@ if (!defined('JS_URL')) {
|
|||
}
|
||||
|
||||
|
||||
require LIBS . 'basics.php';
|
||||
require LIBS . 'Core' . DS .'App.php';
|
||||
require LIBS . 'Error' . DS . 'exceptions.php';
|
||||
require CAKE . 'basics.php';
|
||||
require CAKE . 'Core' . DS .'App.php';
|
||||
require CAKE . 'Error' . DS . 'exceptions.php';
|
||||
|
||||
spl_autoload_register(array('App', 'load'));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue