Skip to content

Commit 2523083

Browse files
committed
Use SPARKED to allow public/index.php to route normally
1 parent b2adb88 commit 2523083

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

system/CodeIgniter.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -838,10 +838,8 @@ protected function createController()
838838
*/
839839
protected function runController($class)
840840
{
841-
// If this is a CLI request then use the input segments as parameters
842-
$params = (is_cli() && ! (ENVIRONMENT === 'testing'))
843-
? $this->request->getSegments()
844-
: $this->router->params();
841+
// If this is a console request then use the input segments as parameters
842+
$params = defined('SPARKED') ? $this->request->getSegments() : $this->router->params();
845843

846844
if (method_exists($class, '_remap'))
847845
{

0 commit comments

Comments
 (0)