diff --git a/README.md b/README.md index d88acf6..15e43a4 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ Installation * No special file permissions are needed by default. Optional: If you want to have the JavaScript- and CSS-files minified, the static/asset/ folder has to be writable. * To ensure that pastes with an expiration set get cleaned up, define the cron key in the config and set up a cronjob, for example: * `*/5 * * * * curl --silent http://yoursite.com/cron/[key]` -* If you encounter errors with stylesheets and paths, make sure your site_root config value is not empty (see [here](http://www.codeigniter.com/user_guide/installation/upgrade_303.html)). +* If you encounter errors with stylesheets and paths, make sure your base_url config value is not empty (see [here](http://www.codeigniter.com/user_guide/installation/upgrade_303.html)). * Be sure to also copy the .htaccess file when you move files around. This is a hidden file and easily overlooked. @@ -79,7 +79,7 @@ Changelog Copy your htdocs/application/stikked.php config file away. Upload the new version. Copy it back. -Add and set the site_root in application/config/stikked.php +Add and set the base_url in htdocs/application/config/stikked.php ### Version 0.10.0: diff --git a/htdocs/application/config/stikked.php.dist b/htdocs/application/config/stikked.php.dist index c2d8d6a..efb8c2d 100644 --- a/htdocs/application/config/stikked.php.dist +++ b/htdocs/application/config/stikked.php.dist @@ -9,12 +9,12 @@ $config['site_name'] = 'Stikked'; /** - * Site Root + * Base URL * - * The base URL of Stikked. WITH trailing slash! + * Set the base URL of Stikked. WITH trailing slash! * */ -$config['site_root'] = 'https://yourpastebin.com/'; +$config['base_url'] = 'https://yourpastebin.com/'; /** * Database connection diff --git a/htdocs/application/controllers/Main.php b/htdocs/application/controllers/Main.php index 288b038..595417b 100644 --- a/htdocs/application/controllers/Main.php +++ b/htdocs/application/controllers/Main.php @@ -39,7 +39,6 @@ class Main extends CI_Controller function __construct() { parent::__construct(); - $this->config->set_item('base_url', config_item('site_root')); $this->output->enable_profiler(false); $this->load->model('languages'); $this->load->library('curl');