Skip to content

Commit

Permalink
Merge pull request #35 from krouma/master
Browse files Browse the repository at this point in the history
Fixes for PHP 7
  • Loading branch information
janzarsky authored Nov 21, 2019
2 parents eda505c + 5fe91d8 commit 9b0f06b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions application/config/database-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
$db['default']['username'] = '@username';
$db['default']['password'] = '@password';
$db['default']['database'] = '@database';
$db['default']['dbdriver'] = 'mysql';
$db['default']['dbdriver'] = 'mysqli';
$db['default']['dbprefix'] = '@prefix';
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
Expand All @@ -66,4 +66,4 @@


/* End of file database.php */
/* Location: ./application/config/database.php */
/* Location: ./application/config/database.php */
4 changes: 2 additions & 2 deletions install.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php
$base = $_SERVER['REQUEST_URI'];
$base = substr($base, 0, strpos($base, '/install.php'));
$base = substr($base, 0, strpos($base, 'install.php'));

$htaccess = file_get_contents('htaccess-template');

$htaccess = str_replace('@rewritebase', $base, $htaccess);

file_put_contents('.htaccess', $htaccess);

header('Location: ' . $base . '/install');
header('Location: ' . $base . 'install');

0 comments on commit 9b0f06b

Please sign in to comment.