mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-18 15:39:53 +00:00
remove CONSOLE_LIBS constnat
This commit is contained in:
parent
08316c5292
commit
998cba0759
3 changed files with 4 additions and 9 deletions
|
@ -136,7 +136,7 @@ class ShellDispatcher {
|
|||
include_once CAKE_CORE_INCLUDE_PATH . DS . 'Cake' . DS . 'Console' . DS . 'templates' . DS . 'skel' . DS . 'Config' . DS . 'core.php';
|
||||
App::build();
|
||||
}
|
||||
require_once CONSOLE_LIBS . 'ConsoleErrorHandler.php';
|
||||
require_once CAKE . 'Console' . DS . 'ConsoleErrorHandler.php';
|
||||
set_exception_handler(array('ConsoleErrorHandler', 'handleException'));
|
||||
set_error_handler(array('ConsoleErrorHandler', 'handleError'), Configure::read('Error.level'));
|
||||
|
||||
|
|
|
@ -99,7 +99,7 @@ class TemplateTaskTest extends CakeTestCase {
|
|||
* @return void
|
||||
*/
|
||||
public function testGetThemePath() {
|
||||
$defaultTheme = LIBS . dirname(CONSOLE_LIBS) . 'templates' . DS . 'default' .DS;
|
||||
$defaultTheme = LIBS . 'Console' . DS . 'templates' . DS . 'default' .DS;
|
||||
$this->Task->templatePaths = array('default' => $defaultTheme);
|
||||
|
||||
$this->Task->expects($this->exactly(1))->method('in')->will($this->returnValue('1'));
|
||||
|
|
|
@ -80,11 +80,6 @@ if (!defined('CONFIGS')) {
|
|||
*/
|
||||
define('IMAGES', WWW_ROOT.'img'.DS);
|
||||
|
||||
/**
|
||||
* Path to the console libs direcotry.
|
||||
*/
|
||||
define('CONSOLE_LIBS', CAKE . 'Console' . DS);
|
||||
|
||||
/**
|
||||
* Path to the tests directory.
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue