mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Adding missing constants
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3405 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
7971fc0de6
commit
f12f312b2e
1 changed files with 4 additions and 1 deletions
|
@ -58,16 +58,19 @@
|
|||
|
||||
define('ROOT', $root);
|
||||
define('APP_DIR', $appdir);
|
||||
define('APP_PATH', ROOT.DS.APP_DIR.DS);
|
||||
}
|
||||
|
||||
function defineAppConstantsWithDefaultValues() {
|
||||
define('ROOT', CORE_PATH);
|
||||
define('APP_DIR', 'app');
|
||||
define('APP_PATH', ROOT.DS.APP_DIR.DS);
|
||||
}
|
||||
|
||||
function defineConstants() {
|
||||
define('DS', DIRECTORY_SEPARATOR);
|
||||
define('CORE_PATH', dirname(dirname(dirname(__FILE__))));
|
||||
define('CAKE_CORE_INCLUDE_PATH', dirname(dirname(dirname(__FILE__))));
|
||||
define('CORE_PATH', CAKE_CORE_INCLUDE_PATH.DS);
|
||||
}
|
||||
|
||||
function executeTask($taskName, $params) {
|
||||
|
|
Loading…
Add table
Reference in a new issue