Skip to content

Commit 8d86edb

Browse files
authored
Switch to use is_cli()
1 parent 70f1e57 commit 8d86edb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/CodeIgniter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ protected function gatherOutput($cacheConfig = null, $returned = null)
969969
public function storePreviousURL($uri)
970970
{
971971
// Ignore CLI requests
972-
if (method_exists($this->request, 'isCLI') && $this->request->isCLI())
972+
if (is_cli())
973973
{
974974
return;
975975
}

0 commit comments

Comments
 (0)