rph wrote:Can VQMod not be used to add constants to config.php and admin/config.php? I'm getting no output for those files and no error log even though I've got the operation set to abort on fail.
By default, I leave the config file out of the installation step because I fear it could be used for bad, but I guess that is possible anyway.
If you want vQmod to work with config.php as well, you need to alter the placement and settings in the index.php files.
Change it from this:
Code: Select all
// Configuration
require_once('config.php');
// Install
if (!defined('DIR_APPLICATION')) {
header('Location: install/index.php');
exit;
}
//VirtualQMOD
require_once('./vqmod/vqmod.php');
$vqmod = new VQMod();
To this:
Code: Select all
//VirtualQMOD
require_once('./vqmod/vqmod.php');
$vqmod = new VQMod();
// Configuration
require_once($vqmod->modCheck('config.php'));
// Install
if (!defined('DIR_APPLICATION')) {
header('Location: install/index.php');
exit;
}
So you see, move the virtualQmod initialization above the configuration line
and change the configuration line require_once to have the modcheck