diff --git a/check.php b/check.php index 4658f97..d4c0270 100644 --- a/check.php +++ b/check.php @@ -60,7 +60,7 @@ class Check { } */ } catch (PDOException $ex) { - Settings::handle_database_error($page->settings, $ex); + Settings::handle_error($page->settings, $ex); } } diff --git a/history.php b/history.php index b3022d0..d9097af 100644 --- a/history.php +++ b/history.php @@ -205,5 +205,5 @@ try { $page->print_footer(); } catch (PDOException $ex) { - Settings::handle_database_error($page->settings, $ex); + Settings::handle_error($page->settings, $ex); } diff --git a/inc/header.php b/inc/header.php index ef14421..b02c3bb 100644 --- a/inc/header.php +++ b/inc/header.php @@ -26,7 +26,7 @@ function __construct($page) { 'kicks.php' => $row['c_kicks'], ); } catch (PDOException $ex) { - Settings::handle_database_error($page->settings, $ex); + Settings::handle_error($page->settings, $ex); } } } diff --git a/inc/page.php b/inc/page.php index 3dc609d..02b82f3 100644 --- a/inc/page.php +++ b/inc/page.php @@ -129,7 +129,7 @@ class Page { return $st; } catch (PDOException $ex) { - Settings::handle_database_error($this->settings, $ex); + Settings::handle_error($this->settings, $ex); } } diff --git a/inc/settings.php b/inc/settings.php index 2c8f48d..504808d 100644 --- a/inc/settings.php +++ b/inc/settings.php @@ -113,7 +113,7 @@ final class Settings { $this->conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $this->conn->setAttribute(PDO::ATTR_EMULATE_PREPARES, false); } catch (PDOException $e) { - Settings::handle_database_error($this, $e); + Settings::handle_error($this, $e); } if ($driver === 'pgsql') { $this->conn->query("SET NAMES 'UTF8';"); @@ -126,7 +126,7 @@ final class Settings { * @param $settings Settings * @param $e Exception */ - static function handle_database_error($settings, $e) { + static function handle_error($settings, $e) { $message = $e->getMessage(); if ($settings->error_pages) { if (strstr($message, "Access denied for user")) {