set the base_url via controller and re-overwrite base_url. whew!

This commit is contained in:
Claude 2016-09-01 15:22:36 +02:00
parent 7722c3e777
commit 6611a550bc
3 changed files with 11 additions and 2 deletions

View File

@ -14,7 +14,7 @@
| path to your installation. | path to your installation.
| |
*/ */
$config['base_url'] = 'http://stikked/'; $config['base_url'] = '';
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
@ -24,7 +24,7 @@ $config['base_url'] = 'http://stikked/';
| So that we can track your version. | So that we can track your version.
| |
*/ */
$config['stikked_version'] = '0.10.0'; $config['stikked_version'] = '0.11.0';
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------

View File

@ -8,6 +8,14 @@
*/ */
$config['site_name'] = 'Stikked'; $config['site_name'] = 'Stikked';
/**
* Site Root
*
* The base URL of Stikked. WITH trailing slash!
*
*/
$config['site_root'] = 'https://yourpastebin.com/';
/** /**
* Database connection * Database connection
* *

View File

@ -39,6 +39,7 @@ class Main extends CI_Controller
function __construct() function __construct()
{ {
parent::__construct(); parent::__construct();
$this->config->set_item('base_url', config_item('site_root'));
$this->output->enable_profiler(false); $this->output->enable_profiler(false);
$this->load->model('languages'); $this->load->model('languages');
$this->load->library('curl'); $this->load->library('curl');