Skip to content

Commit

Permalink
Removed view paths on paths to clean
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbalandan committed Apr 20, 2020
1 parent 51ab7f2 commit 4cb62d1
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 20 deletions.
3 changes: 0 additions & 3 deletions system/Debug/Exceptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -374,9 +374,6 @@ public static function cleanPath(string $file): string
{
switch (true)
{
case strpos($file, VIEWPATH) === 0:
$file = 'VIEWPATH' . DIRECTORY_SEPARATOR . substr($file, strlen(VIEWPATH));
break;
case strpos($file, APPPATH) === 0:
$file = 'APPPATH' . DIRECTORY_SEPARATOR . substr($file, strlen(APPPATH));
break;
Expand Down
1 change: 0 additions & 1 deletion system/Test/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
defined('APPPATH') || define('APPPATH', realpath($paths->appDirectory) . DIRECTORY_SEPARATOR);
defined('WRITEPATH') || define('WRITEPATH', realpath($paths->writableDirectory) . DIRECTORY_SEPARATOR);
defined('SYSTEMPATH') || define('SYSTEMPATH', realpath($paths->systemDirectory) . DIRECTORY_SEPARATOR);
defined('VIEWPATH') || define('VIEWPATH', realpath($paths->viewDirectory) . DIRECTORY_SEPARATOR);
defined('ROOTPATH') || define('ROOTPATH', realpath(APPPATH . '../') . DIRECTORY_SEPARATOR);
defined('CIPATH') || define('CIPATH', realpath(SYSTEMPATH . '../') . DIRECTORY_SEPARATOR);
defined('FCPATH') || define('FCPATH', realpath(PUBLICPATH) . DIRECTORY_SEPARATOR);
Expand Down
8 changes: 0 additions & 8 deletions system/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,6 @@
define('TESTPATH', realpath($paths->testsDirectory) . DIRECTORY_SEPARATOR);
}

/**
* The path to the views directory
*/
if (! defined('VIEWPATH'))
{
define('VIEWPATH', realpath($paths->viewDirectory) . DIRECTORY_SEPARATOR);
}

/*
* ---------------------------------------------------------------
* GRAB OUR CONSTANTS & COMMON
Expand Down
8 changes: 0 additions & 8 deletions tests/system/Debug/ExceptionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,10 @@ public function dirtyPathsProvider()
APPPATH . 'Config' . $ds . 'App.php',
'APPPATH' . $ds . 'Config' . $ds . 'App.php',
],
[
APPPATH . 'Views' . $ds . 'welcome_message.php',
'VIEWPATH' . $ds . 'welcome_message.php',
],
[
SYSTEMPATH . 'CodeIgniter.php',
'SYSTEMPATH' . $ds . 'CodeIgniter.php',
],
[
VIEWPATH . 'errors' . $ds . 'html' . $ds . 'error_exception.php',
'VIEWPATH' . $ds . 'errors' . $ds . 'html' . $ds . 'error_exception.php',
],
[
VENDORPATH . 'autoload.php',
'VENDORPATH' . $ds . 'autoload.php',
Expand Down

0 comments on commit 4cb62d1

Please sign in to comment.