diff --git a/app/classes/database.php b/app/classes/database.php index a70a5f8..63c7449 100644 --- a/app/classes/database.php +++ b/app/classes/database.php @@ -66,7 +66,7 @@ class Database { $this->pdo = new PDO($dsn, $options['user'], $options['password'] ?? ''); $this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } catch (PDOException $e) { - $error = getError('MySQL connection failed: ', $config['environment'], $e->getMessage()); + $error = getError('MySQL connection failed: ', $e->getMessage(), $config['environment']); } } diff --git a/app/helpers/pagination.php b/app/helpers/pagination.php index d626de6..4346773 100644 --- a/app/helpers/pagination.php +++ b/app/helpers/pagination.php @@ -4,22 +4,22 @@ 1) { - echo '<<'; + echo '<<'; } else { echo '<<'; } echo '[' . htmlspecialchars($i) . ']'; if ($browse_page < $page_count) { - echo '>>'; + echo '>>'; } else { echo '>>'; } } else { // other pages - echo '[' . htmlspecialchars($i) . ']'; + echo '[' . htmlspecialchars($i) . ']'; } // show ellipses between distant pages } elseif ( @@ -72,7 +72,7 @@ } if ($browse_page < $page_count) { - echo 'last'; + echo 'last'; } else { echo 'last'; } diff --git a/public_html/index.php b/public_html/index.php index 114f397..16fb0e4 100644 --- a/public_html/index.php +++ b/public_html/index.php @@ -68,7 +68,7 @@ if ($config_file) { die('Config file not found'); } -$app_root = htmlspecialchars($config['folder']); +$app_root = $config['folder']; session_name('jilo'); session_start();