4
0
Эх сурвалжийг харах

Rename conflicting function (#4289)

#fix https://github.com/FreshRSS/FreshRSS/issues/4284
Alexandre Alapetite 4 жил өмнө
parent
commit
efb57f965a

+ 2 - 2
lib/Minz/FrontController.php

@@ -100,9 +100,9 @@ class Minz_FrontController {
 	* Permet d'arrêter le programme en urgence
 	*/
 	private function killApp ($txt = '') {
-		if (function_exists('errorMessage')) {
+		if (function_exists('errorMessageInfo')) {
 			//If the application has defined a custom error message function
-			exit(errorMessage('Application problem', $txt));
+			exit(errorMessageInfo('Application problem', $txt));
 		}
 		exit('### Application problem ###<br />' . "\n" . $txt);
 	}

+ 1 - 1
lib/lib_rss.php

@@ -726,7 +726,7 @@ function getNonStandardShortcuts($shortcuts) {
 	return $nonStandard;
 }
 
-function errorMessage($errorTitle, $error = '') {
+function errorMessageInfo($errorTitle, $error = '') {
 	$errorTitle = htmlspecialchars($errorTitle, ENT_NOQUOTES, 'UTF-8');
 
 	$message = '';

+ 1 - 1
p/i/index.php

@@ -65,6 +65,6 @@ if (!file_exists($applied_migrations_path)) {
 	if ($error) {
 		syslog(LOG_INFO, 'FreshRSS Fatal error! ' . $error);
 		Minz_Log::error($error);
-		die(errorMessage('Fatal error', $error));
+		die(errorMessageInfo('Fatal error', $error));
 	}
 }