Skip to content

Commit e54ebab

Browse files
committed
Update index_page is blank
1 parent 48f51d9 commit e54ebab

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/Installer.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,19 @@ public static function postInstall(Event $event = null)
4444
);
4545
file_put_contents($file, $contents);
4646

47-
// Enable Composer Autoloader
47+
// Enable Composer Autoloader AND 'index_page' is blank
4848
$file = 'application/config/config.php';
4949
$contents = file_get_contents($file);
5050
$contents = str_replace(
5151
'$config[\'composer_autoload\'] = FALSE;',
5252
'$config[\'composer_autoload\'] = realpath(APPPATH . \'../vendor/autoload.php\');',
5353
$contents
5454
);
55+
$contents = str_replace(
56+
'$config[\'index_page\'] = \'index.php\';',
57+
'$config[\'index_page\'] = \'\';',
58+
$contents
59+
);
5560
file_put_contents($file, $contents);
5661

5762
copy('composer.json.dist', 'composer.json');

0 commit comments

Comments
 (0)