diff options
author | Claude <longneck@scratchbook.ch> | 2018-09-28 16:58:23 +0200 |
---|---|---|
committer | Claude <longneck@scratchbook.ch> | 2018-09-28 16:58:23 +0200 |
commit | 83f52c2f38220755ed6fd5efa38ee1f64b3e2ad1 (patch) | |
tree | be4011bcea0e83431abc8263308b6770a30d401d | |
parent | d5ffd5795641a6209863dc008c3b98e09472557e (diff) | |
download | stikked-fit-83f52c2f38220755ed6fd5efa38ee1f64b3e2ad1.tar.gz stikked-fit-83f52c2f38220755ed6fd5efa38ee1f64b3e2ad1.tar.bz2 stikked-fit-83f52c2f38220755ed6fd5efa38ee1f64b3e2ad1.zip |
use default expiration when expiration is not set via api. fixes #480
-rw-r--r-- | htdocs/application/controllers/Api.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/htdocs/application/controllers/Api.php b/htdocs/application/controllers/Api.php index e2f7c98..2ed5cb0 100644 --- a/htdocs/application/controllers/Api.php +++ b/htdocs/application/controllers/Api.php @@ -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; |