From 9d8010b14a32a95bc291c3c909552c7ac9d8c954 Mon Sep 17 00:00:00 2001 From: Toto Date: Sat, 21 Feb 2026 12:03:07 +0700 Subject: [PATCH 1/2] fix: perbaiki kompatibilitas codeigniter 3 - ubah method getResultArray() menjadi result_array() di Install.php - sesuaikan dengan standar CodeIgniter 3 untuk pengambilan hasil array - mengatasi error kompatibilitas pada versi CI yang lebih lama --- docs/changelog/457.md | 2 +- donjo-app/Libraries/Install.php | 2 +- public/.htaccess | 39 ++++++++++++++------------------- 3 files changed, 19 insertions(+), 24 deletions(-) diff --git a/docs/changelog/457.md b/docs/changelog/457.md index 942357f26..832568af5 100644 --- a/docs/changelog/457.md +++ b/docs/changelog/457.md @@ -10,7 +10,7 @@ Rilis: - - ## :hammer_and_wrench: Perbaikan -- +- Memperbaiki kompatibilitas CodeIgniter 3: mengubah method `getResultArray()` menjadi `result_array()` di `donjo-app/Libraries/Install.php` ## :capital_abcd: Lain-lain - diff --git a/donjo-app/Libraries/Install.php b/donjo-app/Libraries/Install.php index 0f183fa8e..81444e7a4 100644 --- a/donjo-app/Libraries/Install.php +++ b/donjo-app/Libraries/Install.php @@ -21,7 +21,7 @@ public function cek(): bool $db = $this->CI->db->dbprefix . $this->CI->db->database; $sql = "SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_SCHEMA=? AND TABLE_NAME <> 'impor'"; $query = $this->CI->db->query($sql, $db); - $data = $query->getResultArray(); + $data = $query->result_array(); return ! (count($data) !== 77); } diff --git a/public/.htaccess b/public/.htaccess index cf95d4980..c9f768c7c 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -1,22 +1,17 @@ -# Disable directory browsing -Options All -Indexes - - - Options +FollowSymlinks - RewriteEngine on - - RewriteCond %{REQUEST_FILENAME} !-f - RewriteCond %{REQUEST_FILENAME} !-d - RewriteRule ^(index\.php|images|css|js|robots\.txt|favicon\.ico) - [L] - RewriteRule ^(.*)$ /index.php/$1 [L,QSA,NC] - - RewriteCond %{HTTP:Authorization} . - RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] - - - # If we don't have mod_rewrite installed, all 404's - # can be sent to index.php, and everything works as normal. - ErrorDocument 404 index.php - - -ServerSignature Off +# Disable directory browsing +Options -Indexes +FollowSymLinks + + + RewriteEngine On + RewriteBase / + + # Redirect to index.php if not a file or directory + RewriteCond %{REQUEST_FILENAME} !-f + RewriteCond %{REQUEST_FILENAME} !-d + RewriteRule ^(.*)$ index.php?$1 [L,QSA] + + +# Prevent directory listing +Options -Indexes + +ServerSignature Off From 48c66b6707e7a8405df560213010b5a69b22c34f Mon Sep 17 00:00:00 2001 From: Toto Date: Sat, 21 Feb 2026 12:06:19 +0700 Subject: [PATCH 2/2] up --- public/.htaccess | 3 --- 1 file changed, 3 deletions(-) diff --git a/public/.htaccess b/public/.htaccess index c9f768c7c..ae0da193b 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -11,7 +11,4 @@ Options -Indexes +FollowSymLinks RewriteRule ^(.*)$ index.php?$1 [L,QSA] -# Prevent directory listing -Options -Indexes - ServerSignature Off