mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-25 04:21:17 -05:00
use default expiration when expiration is not set via api. fixes #480
This commit is contained in:
parent
d5ffd57956
commit
83f52c2f38
@ -96,6 +96,11 @@ class Api extends Main
|
||||
}
|
||||
}
|
||||
|
||||
if (!$this->input->post('expire'))
|
||||
{
|
||||
$_POST['expire'] = config_item('default_expiration');
|
||||
}
|
||||
|
||||
//create paste
|
||||
$paste_url = $this->pastes->createPaste();
|
||||
$data['msg'] = base_url() . $paste_url;
|
||||
|
Loading…
x
Reference in New Issue
Block a user