From 947e918f05d70d5dce4efa4ef403e593581c3fa9 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 28 Feb 2021 12:26:24 +0100 Subject: Travis: Enforce phpcs line length + whitespace (#3488) * Update Travis line length * Also check whitespace in CSS files * Fix line length ext.php * More syntax, string templates * Fix exclude-pattern * Test JS files as well --- lib/lib_rss.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'lib/lib_rss.php') diff --git a/lib/lib_rss.php b/lib/lib_rss.php index 067b7653d..13fce3d8c 100644 --- a/lib/lib_rss.php +++ b/lib/lib_rss.php @@ -124,7 +124,7 @@ function escapeToUnicodeAlternative($text, $extended = true) { function format_number($n, $precision = 0) { // number_format does not seem to be Unicode-compatible - return str_replace(' ', ' ', //Espace fine insécable + return str_replace(' ', ' ', //Espace fine insécable number_format($n, $precision, '.', ' ') ); } @@ -358,8 +358,8 @@ function get_user_configuration($username) { $namespace = 'user_' . $username; try { Minz_Configuration::register($namespace, - join_path(USERS_PATH, $username, 'config.php'), - join_path(FRESHRSS_PATH, 'config-user.default.php')); + USERS_PATH . '/' . $username . '/config.php', + FRESHRSS_PATH . '/config-user.default.php'); } catch (Minz_ConfigurationNamespaceException $e) { // namespace already exists, do nothing. Minz_Log::warning($e->getMessage(), USERS_PATH . '/_/log.txt'); @@ -572,7 +572,8 @@ function errorMessage($errorTitle, $error = '') {

{$errorTitle}

{$error}

Common problems

-

A typical problem leading to this message is wrong file permissions in the ./FreshRSS/data/ folder so make sure the Web server can write there and in sub-directories.

+

A typical problem leading to this message is wrong file permissions in the ./FreshRSS/data/ folder + so make sure the Web server can write there and in sub-directories.

Common locations for additional logs

N.B.: Adapt names and paths according to your local setup.