Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurício Meneghini Fauth <mauriciofauth@gmail.com>2018-02-23 21:26:02 +0300
committerMaurício Meneghini Fauth <mauriciofauth@gmail.com>2018-02-23 21:26:02 +0300
commit17bf8b7309919f8ac593d7c563b31472780ee83b (patch)
treefb5b3d6bd958d9cb8bb06d42a188b2c26eea84b0 /error_report.php
parent69c7720336f44080a0b070239a6158d022cd9917 (diff)
Replace static methods with instance methods
Replaces PhpMyAdmin\UserPreferences static methods with instance methods. Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
Diffstat (limited to 'error_report.php')
-rw-r--r--error_report.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/error_report.php b/error_report.php
index a30998e777..408a4eb201 100644
--- a/error_report.php
+++ b/error_report.php
@@ -119,7 +119,8 @@ if (isset($_REQUEST['send_error_report'])
if (isset($_REQUEST['always_send'])
&& $_REQUEST['always_send'] === "true"
) {
- UserPreferences::persistOption("SendErrorReports", "always", "ask");
+ $userPreferences = new UserPreferences();
+ $userPreferences->persistOption("SendErrorReports", "always", "ask");
}
}
} elseif (! empty($_REQUEST['get_settings'])) {