Skip to content

Commit

Permalink
Dev Removed obsolete file_helper
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Aug 9, 2012
1 parent 10ca976 commit d02f20e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 494 deletions.
3 changes: 1 addition & 2 deletions application/controllers/InstallerController.php
Expand Up @@ -919,7 +919,6 @@ function _writeConfigFile()
//write config.php if database exists and has been populated.
if (Yii::app()->session['databaseexist'] && Yii::app()->session['tablesexist'])
{
$this->loadHelper('file');

extract(self::_getDatabaseConfig());
$sDsn = self::_getDsn($sDatabaseType, $sDatabaseLocation, $sDatabasePort, $sDatabaseName, $sDatabaseUser, $sDatabasePwd);
Expand Down Expand Up @@ -1031,7 +1030,7 @@ function _writeConfigFile()
. "/* Location: ./application/config/config.php */";

if (is_writable(APPPATH . 'config')) {
write_file(APPPATH . 'config/config.php', $dbdata);
file_put_contents(APPPATH . 'config/config.php', $dbdata);
Yii::app()->session['configFileWritten'] = true;
} else {
header('refresh:5;url='.$this->createUrl("installer/welcome"));
Expand Down

0 comments on commit d02f20e

Please sign in to comment.