summaryrefslogtreecommitdiff
path: root/src/web/_controller/bucket.php
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-09-18 14:14:53 -0400
committerFreya Murphy <freya@freyacat.org>2024-09-18 14:48:54 -0400
commit1f9024763d9224c4cd9a181bac27e6b9f12ad672 (patch)
tree00f827470dad9aa2692483acbdef9502c1a464d3 /src/web/_controller/bucket.php
parentfix rss (diff)
downloadwebsite-1f9024763d9224c4cd9a181bac27e6b9f12ad672.tar.gz
website-1f9024763d9224c4cd9a181bac27e6b9f12ad672.tar.bz2
website-1f9024763d9224c4cd9a181bac27e6b9f12ad672.zip
refactor
Diffstat (limited to 'src/web/_controller/bucket.php')
-rw-r--r--src/web/_controller/bucket.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/web/_controller/bucket.php b/src/web/_controller/bucket.php
index ed15ef8..a7d1023 100644
--- a/src/web/_controller/bucket.php
+++ b/src/web/_controller/bucket.php
@@ -3,12 +3,13 @@ class Bucket_controller extends Controller {
private $bucket_model;
- function __construct($load) {
- parent::__construct($load);
- $this->bucket_model = $this->load->model('bucket');
+ function __construct()
+ {
+ $this->bucket_model = $this->load_model('bucket');
}
- public function index(): void {
+ public function index(): void
+ {
parent::index();
$data = $this->bucket_model->get_data();
if ($data === NULL) {