Skip to content

Commit a665638

Browse files
committed
Do not use translate function in routes if it does not exist
1 parent 896f4fd commit a665638

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

featherbb/routes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@
217217

218218
// Hide internal mechanism
219219
if (!ForumEnv::get('FEATHER_DEBUG')) {
220-
$error['message'] = __('Error');
220+
$error['message'] = function_exists('__') ? __('Error') : 'Error';
221221
$error['hide'] = true;
222222
}
223223

0 commit comments

Comments
 (0)