diff --git a/application/controllers/Logbooks.php b/application/controllers/Logbooks.php index 0c24a4fd..02459948 100644 --- a/application/controllers/Logbooks.php +++ b/application/controllers/Logbooks.php @@ -132,14 +132,27 @@ class Logbooks extends CI_Controller { public function save_publicslug() { $this->load->model('logbooks_model'); - $this->load->model('logbooks_model'); - $result = $this->logbooks_model->is_public_slug_available($this->input->post('public_slug')); - - if($result == true) { - $returndata = $this->logbooks_model->save_public_slug($this->input->post('public_slug'), $this->input->post('logbook_id')); - echo "
Setting a public slug allows you to share your logbook with anyone via a custom website address, this slug can contain letters & numbers only.
+ + +Setting a public slug allows you to share your logbook with anyone via a custom website address, this slug can contain letters & numbers only.
- - -