Skip to content

Commit fed0ae9

Browse files
authored
Merge pull request #1415 from samsonasik/def-basepath-constant-check-view
remove unneded "defined('BASEPATH') OR exit('No direct script access allowed') in Views/Errors files
2 parents 9d6f516 + 3689692 commit fed0ae9

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

application/Views/errors/cli/error_404.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<?php
2-
defined('BASEPATH') OR exit('No direct script access allowed');
3-
42
use CodeIgniter\CLI\CLI;
53

64
CLI::error('ERROR: ' . $code);

application/Views/errors/cli/error_exception.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
2-
31
An uncaught Exception was encountered
42

53
Type: <?= get_class($exception), "\n"; ?>

application/Views/errors/html/error_404.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
<?php
2-
defined('BASEPATH') OR exit('No direct script access allowed');
3-
?><!DOCTYPE html>
1+
<!DOCTYPE html>
42
<html lang="en">
53
<head>
64
<meta charset="utf-8">

0 commit comments

Comments
 (0)