Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue #12066: get whole config in command action
Dev: near same logic than WebApp
- Loading branch information
Showing
3 changed files
with
92 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | ||
/* | ||
* LimeSurvey | ||
* Copyright (C) 2007-2017 The LimeSurvey Project Team / Carsten Schmitz | ||
* All rights reserved. | ||
* License: GNU/GPL License v3 or later, see LICENSE.php | ||
* LimeSurvey is free software. This version may have been modified pursuant | ||
* to the GNU General Public License, and as distributed it includes or | ||
* is derivative of works licensed under the GNU General Public License or | ||
* other free or open source software licenses. | ||
* See COPYRIGHT.php for copyright notices and details. | ||
* | ||
*/ | ||
|
||
/** | ||
* This file contains the default settings for LimeSurvey for command action | ||
* Do not edit this file as it may change in future revisions of the software. | ||
* @package configuration | ||
*/ | ||
|
||
|
||
$config = array(); | ||
|
||
$config['rootdir'] = Yii::getPathOfAlias('webroot'); | ||
|
||
$config['publicdir'] = $config['rootdir']; // The directory path of the public scripts | ||
$config['homedir'] = $config['rootdir']; // The directory path of the admin scripts | ||
$config['tempdir'] = $config['rootdir'].DIRECTORY_SEPARATOR."tmp"; // The directory path where LimeSurvey can store temporary files | ||
$config['imagedir'] = $config['rootdir'].DIRECTORY_SEPARATOR."images"; // The directory path of the image directory | ||
$config['uploaddir'] = $config['rootdir'].DIRECTORY_SEPARATOR."upload"; | ||
$config['standardtemplaterootdir'] = $config['rootdir'].DIRECTORY_SEPARATOR."templates"; // The directory path of the standard templates | ||
$config['usertemplaterootdir'] = $config['uploaddir'].DIRECTORY_SEPARATOR."templates"; // The directory path of the user templates | ||
$config['styledir'] = $config['rootdir'].DIRECTORY_SEPARATOR.'styles'; | ||
$config['questiontypedir'] = $config['rootdir'].DIRECTORY_SEPARATOR.'application'.DIRECTORY_SEPARATOR.'extensions'.DIRECTORY_SEPARATOR.'questionTypes'; | ||
|
||
return $config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters