works indeed.

This commit is contained in:
Claude 2016-09-01 21:39:41 +02:00
parent 09e6533ffd
commit 4049cd4447
3 changed files with 5 additions and 6 deletions

View File

@ -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:

View File

@ -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

View File

@ -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');