Permalink
Browse files

Change way how error message is thrown when wp-config.php is not found

  • Loading branch information...
vokiel committed Sep 3, 2015
1 parent 74ac365 commit e17cbe1bbebf7b6d9481b18aa3da43a712b16d2b
Showing with 4 additions and 6 deletions.
  1. +2 −3 ckfinder/ckfinder_config.php
  2. +2 −3 filemanager/connectors/php/config.php
@@ -37,9 +37,8 @@ function findWpConfigRecursively($dir){
// If you've seen this message below auto-discovery for wp-config.php file failed
// Please set the path manually like
// require_once dirname(__FILE__). '/../../../../wp-config.php';
// then comment those two lines below
require_once dirname(__FILE__).'/../filemanager/connectors/php/basexml.php';
SendError(1, "Searching for configuration file 'wp-config.php' failed. <br><br>Please set the path manually in: <br>".__FILE__);
// then comment/remove the line below
die("Searching for configuration file 'wp-config.php' failed. <br><br>Please set the path manually in: <br>".__FILE__);
}
require_once $wpRoot . '/wp-config.php';
}
@@ -47,9 +47,8 @@ function findWpConfigRecursively($dir){
// If you've seen this message below auto-discovery for wp-config.php file failed
// Please set the path manually like
// require_once dirname(__FILE__). '/../../../../../../wp-config.php';
// then comment those two lines below
require_once dirname(__FILE__).'/basexml.php';
SendError(1, "Searching for configuration file 'wp-config.php' failed. Please set the path manually in: ".__FILE__);
// then comment/remove the line below
die("Searching for configuration file 'wp-config.php' failed. Please set the path manually in: ".__FILE__);
}
require_once $wpRoot . '/wp-config.php';
}

0 comments on commit e17cbe1

Please sign in to comment.