Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/changelog/457.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
-
Expand Down
2 changes: 1 addition & 1 deletion donjo-app/Libraries/Install.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
36 changes: 14 additions & 22 deletions public/.htaccess
Original file line number Diff line number Diff line change
@@ -1,22 +1,14 @@
# Disable directory browsing
Options All -Indexes

<IfModule mod_rewrite.c>
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}]
</IfModule>
<IfModule !mod_rewrite.c>
# 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
</IfModule>

ServerSignature Off
# Disable directory browsing
Options -Indexes +FollowSymLinks

<IfModule mod_rewrite.c>
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]
</IfModule>

ServerSignature Off
Comment thread
totoprayogo1916 marked this conversation as resolved.
Loading