@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | "ENABLE_API_ACCESS" => array(__("Enable API"), __("Allows accessing this account through the API")), |
| 83 | 83 | "ENABLE_FEED_CATS" => array(__("Enable categories")), |
| 84 | 84 | "FEEDS_SORT_BY_UNREAD" => array(__("Sort feeds by unread articles count"), ""), |
| 85 | - "FRESH_ARTICLE_MAX_AGE" => array(__("Maximum age of fresh articles"), "<strong>" . __("hours") . "</strong>"), |
|
| 85 | + "FRESH_ARTICLE_MAX_AGE" => array(__("Maximum age of fresh articles"), "<strong>".__("hours")."</strong>"), |
|
| 86 | 86 | "HIDE_READ_FEEDS" => array(__("Hide read feeds")), |
| 87 | 87 | "HIDE_READ_SHOWS_SPECIAL" => array(__("Always show special feeds"), __("While hiding read feeds")), |
| 88 | 88 | "LONG_DATE_FORMAT" => array(__("Long date format"), __("Syntax is identical to PHP <a href='http://php.net/manual/function.date.php'>date()</a> function.")), |
@@ -403,7 +403,7 @@ discard block |
||
| 403 | 403 | |
| 404 | 404 | if ($_SESSION["auth_module"] == "auth_internal") { |
| 405 | 405 | |
| 406 | - print "<div dojoType='dijit.layout.ContentPane' title=\"" . __('App passwords') . "\">"; |
|
| 406 | + print "<div dojoType='dijit.layout.ContentPane' title=\"".__('App passwords')."\">"; |
|
| 407 | 407 | |
| 408 | 408 | print_notice("You can create separate passwords for API clients. Using one is required if you enable OTP."); |
| 409 | 409 | |
@@ -415,11 +415,11 @@ discard block |
||
| 415 | 415 | |
| 416 | 416 | print "<button style='float : left' class='alt-primary' dojoType='dijit.form.Button' |
| 417 | 417 | onclick=\"Helpers.AppPasswords.generate()\">" . |
| 418 | - __('Generate new password') . "</button> "; |
|
| 418 | + __('Generate new password')."</button> "; |
|
| 419 | 419 | |
| 420 | 420 | print "<button style='float : left' class='alt-danger' dojoType='dijit.form.Button' |
| 421 | 421 | onclick=\"Helpers.AppPasswords.removeSelected()\">" . |
| 422 | - __('Remove selected passwords') . "</button>"; |
|
| 422 | + __('Remove selected passwords')."</button>"; |
|
| 423 | 423 | |
| 424 | 424 | print "</div>"; # content pane |
| 425 | 425 | } |
@@ -474,13 +474,13 @@ discard block |
||
| 474 | 474 | print_notice("You will need to generate app passwords for the API clients if you enable OTP."); |
| 475 | 475 | |
| 476 | 476 | if (function_exists("imagecreatefromstring")) { |
| 477 | - print "<h3>" . __("Scan the following code by the Authenticator application or copy the key manually") . "</h3>"; |
|
| 477 | + print "<h3>".__("Scan the following code by the Authenticator application or copy the key manually")."</h3>"; |
|
| 478 | 478 | |
| 479 | 479 | $csrf_token = $_SESSION["csrf_token"]; |
| 480 | 480 | print "<img alt='otp qr-code' src='backend.php?op=pref-prefs&method=otpqrcode&csrf_token=$csrf_token'>"; |
| 481 | 481 | } else { |
| 482 | 482 | print_error("PHP GD functions are required to generate QR codes."); |
| 483 | - print "<h3>" . __("Use the following OTP key with a compatible Authenticator application") . "</h3>"; |
|
| 483 | + print "<h3>".__("Use the following OTP key with a compatible Authenticator application")."</h3>"; |
|
| 484 | 484 | } |
| 485 | 485 | |
| 486 | 486 | print "<form dojoType='dijit.form.Form' id='changeOtpForm'>"; |
@@ -647,7 +647,7 @@ discard block |
||
| 647 | 647 | print "<fieldset class='prefs'>"; |
| 648 | 648 | |
| 649 | 649 | print "<label for='CB_$pref_name'>"; |
| 650 | - print $item['short_desc'] . ":"; |
|
| 650 | + print $item['short_desc'].":"; |
|
| 651 | 651 | print "</label>"; |
| 652 | 652 | |
| 653 | 653 | $value = $item['value']; |
@@ -684,7 +684,7 @@ discard block |
||
| 684 | 684 | print "</select>"; |
| 685 | 685 | |
| 686 | 686 | print " <button dojoType=\"dijit.form.Button\" class='alt-info' |
| 687 | - onclick=\"Helpers.customizeCSS()\">" . __('Customize') . "</button>"; |
|
| 687 | + onclick=\"Helpers.customizeCSS()\">" . __('Customize')."</button>"; |
|
| 688 | 688 | |
| 689 | 689 | print " <button dojoType='dijit.form.Button' onclick='window.open(\"https://tt-rss.org/wiki/Themes\")'> |
| 690 | 690 | <i class='material-icons'>open_in_new</i> ".__("More themes...")."</button>"; |
@@ -747,12 +747,12 @@ discard block |
||
| 747 | 747 | $has_serial = ($cert_serial) ? "false" : "true"; |
| 748 | 748 | |
| 749 | 749 | print "<button dojoType='dijit.form.Button' disabled='$has_serial' |
| 750 | - onclick=\"dijit.byId('SSL_CERT_SERIAL').attr('value', '$cert_serial')\">" . |
|
| 751 | - __('Register') . "</button>"; |
|
| 750 | + onclick=\"dijit.byId('SSL_CERT_SERIAL').attr('value', '$cert_serial')\">". |
|
| 751 | + __('Register')."</button>"; |
|
| 752 | 752 | |
| 753 | 753 | print "<button dojoType='dijit.form.Button' class='alt-danger' |
| 754 | 754 | onclick=\"dijit.byId('SSL_CERT_SERIAL').attr('value', '')\">" . |
| 755 | - __('Clear') . "</button>"; |
|
| 755 | + __('Clear')."</button>"; |
|
| 756 | 756 | |
| 757 | 757 | print "<button dojoType='dijit.form.Button' class='alt-info' |
| 758 | 758 | onclick='window.open(\"https://tt-rss.org/wiki/SSL%20Certificate%20Authentication\")'> |
@@ -763,7 +763,7 @@ discard block |
||
| 763 | 763 | id=\"$pref_name\" regexp=\"[012]?\d:\d\d\" placeHolder=\"12:00\" |
| 764 | 764 | name=\"$pref_name\" value=\"$value\">"; |
| 765 | 765 | |
| 766 | - $item['help_text'] .= ". " . T_sprintf("Current server time: %s", date("H:i")); |
|
| 766 | + $item['help_text'] .= ". ".T_sprintf("Current server time: %s", date("H:i")); |
|
| 767 | 767 | } else { |
| 768 | 768 | $regexp = ($type_name == 'integer') ? 'regexp="^\d*$"' : ''; |
| 769 | 769 | |
@@ -849,7 +849,7 @@ discard block |
||
| 849 | 849 | print_warning("Your PHP configuration has open_basedir restrictions enabled. Some plugins relying on CURL for functionality may not work correctly."); |
| 850 | 850 | } |
| 851 | 851 | |
| 852 | - $feed_handler_whitelist = [ "Af_Comics" ]; |
|
| 852 | + $feed_handler_whitelist = ["Af_Comics"]; |
|
| 853 | 853 | |
| 854 | 854 | $feed_handlers = array_merge( |
| 855 | 855 | PluginHost::getInstance()->get_hooks(PluginHost::HOOK_FEED_FETCHED), |
@@ -861,9 +861,9 @@ discard block |
||
| 861 | 861 | |
| 862 | 862 | if (count($feed_handlers) > 0) { |
| 863 | 863 | print_error( |
| 864 | - T_sprintf("The following plugins use per-feed content hooks. This may cause excessive data usage and origin server load resulting in a ban of your instance: <b>%s</b>" , |
|
| 864 | + T_sprintf("The following plugins use per-feed content hooks. This may cause excessive data usage and origin server load resulting in a ban of your instance: <b>%s</b>", |
|
| 865 | 865 | implode(", ", array_map(function($plugin) { return get_class($plugin); }, $feed_handlers)) |
| 866 | - ) . " (<a href='https://tt-rss.org/wiki/FeedHandlerPlugins' target='_blank'>".__("More info...")."</a>)" |
|
| 866 | + )." (<a href='https://tt-rss.org/wiki/FeedHandlerPlugins' target='_blank'>".__("More info...")."</a>)" |
|
| 867 | 867 | ); |
| 868 | 868 | } |
| 869 | 869 | |
@@ -892,7 +892,7 @@ discard block |
||
| 892 | 892 | <label class='checkbox description text-muted' id='PLABEL-$name'> |
| 893 | 893 | <input disabled='1' |
| 894 | 894 | dojoType='dijit.form.CheckBox' $checked type='checkbox'> |
| 895 | - ".htmlspecialchars($about[1]). "</label>"; |
|
| 895 | + ".htmlspecialchars($about[1])."</label>"; |
|
| 896 | 896 | |
| 897 | 897 | if (@$about[4]) { |
| 898 | 898 | print "<button dojoType='dijit.form.Button' class='alt-info' |
@@ -1159,7 +1159,7 @@ discard block |
||
| 1159 | 1159 | print "<div dojoType='fox.Toolbar'>"; |
| 1160 | 1160 | |
| 1161 | 1161 | print "<div dojoType='fox.form.DropDownButton'>". |
| 1162 | - "<span>" . __('Select')."</span>"; |
|
| 1162 | + "<span>".__('Select')."</span>"; |
|
| 1163 | 1163 | print "<div dojoType='dijit.Menu' style='display: none'>"; |
| 1164 | 1164 | print "<div onclick=\"Tables.select('pref-profiles-list', true)\" |
| 1165 | 1165 | dojoType='dijit.MenuItem'>".__('All')."</div>"; |
@@ -1197,7 +1197,7 @@ discard block |
||
| 1197 | 1197 | $is_active = ""; |
| 1198 | 1198 | } |
| 1199 | 1199 | |
| 1200 | - print "<td width='100%'><span>" . __("Default profile") . " $is_active</span></td>"; |
|
| 1200 | + print "<td width='100%'><span>".__("Default profile")." $is_active</span></td>"; |
|
| 1201 | 1201 | |
| 1202 | 1202 | print "</tr>"; |
| 1203 | 1203 | |
@@ -1219,7 +1219,7 @@ discard block |
||
| 1219 | 1219 | |
| 1220 | 1220 | print "<td><span dojoType='dijit.InlineEditBox' |
| 1221 | 1221 | width='300px' autoSave='false' |
| 1222 | - profile-id='$profile_id'>" . $edit_title . |
|
| 1222 | + profile-id='$profile_id'>".$edit_title. |
|
| 1223 | 1223 | "<script type='dojo/method' event='onChange' args='item'> |
| 1224 | 1224 | var elem = this; |
| 1225 | 1225 | dojo.xhrPost({ |
@@ -1268,13 +1268,13 @@ discard block |
||
| 1268 | 1268 | |
| 1269 | 1269 | private function appPasswordList() { |
| 1270 | 1270 | print "<div dojoType='fox.Toolbar'>"; |
| 1271 | - print "<div dojoType='fox.form.DropDownButton'>" . |
|
| 1272 | - "<span>" . __('Select') . "</span>"; |
|
| 1271 | + print "<div dojoType='fox.form.DropDownButton'>". |
|
| 1272 | + "<span>".__('Select')."</span>"; |
|
| 1273 | 1273 | print "<div dojoType='dijit.Menu' style='display: none'>"; |
| 1274 | 1274 | print "<div onclick=\"Tables.select('app-password-list', true)\" |
| 1275 | - dojoType=\"dijit.MenuItem\">" . __('All') . "</div>"; |
|
| 1275 | + dojoType=\"dijit.MenuItem\">" . __('All')."</div>"; |
|
| 1276 | 1276 | print "<div onclick=\"Tables.select('app-password-list', false)\" |
| 1277 | - dojoType=\"dijit.MenuItem\">" . __('None') . "</div>"; |
|
| 1277 | + dojoType=\"dijit.MenuItem\">" . __('None')."</div>"; |
|
| 1278 | 1278 | print "</div></div>"; |
| 1279 | 1279 | print "</div>"; #toolbar |
| 1280 | 1280 | |
@@ -1299,7 +1299,7 @@ discard block |
||
| 1299 | 1299 | |
| 1300 | 1300 | print "<td align='center'> |
| 1301 | 1301 | <input onclick='Tables.onRowChecked(this)' dojoType='dijit.form.CheckBox' type='checkbox'></td>"; |
| 1302 | - print "<td>" . htmlspecialchars($row["title"]) . "</td>"; |
|
| 1302 | + print "<td>".htmlspecialchars($row["title"])."</td>"; |
|
| 1303 | 1303 | |
| 1304 | 1304 | print "<td align='right' class='text-muted'>"; |
| 1305 | 1305 | print make_local_datetime($row['created'], false); |
@@ -1319,7 +1319,7 @@ discard block |
||
| 1319 | 1319 | private function encryptAppPassword($password) { |
| 1320 | 1320 | $salt = substr(bin2hex(get_random_bytes(24)), 0, 24); |
| 1321 | 1321 | |
| 1322 | - return "SSHA-512:".hash('sha512', $salt . $password). ":$salt"; |
|
| 1322 | + return "SSHA-512:".hash('sha512', $salt.$password).":$salt"; |
|
| 1323 | 1323 | } |
| 1324 | 1324 | |
| 1325 | 1325 | function deleteAppPassword() { |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | |
| 36 | 36 | print "</section>"; |
| 37 | 37 | |
| 38 | - print "<header>" . __("Colors") . "</header>"; |
|
| 38 | + print "<header>".__("Colors")."</header>"; |
|
| 39 | 39 | print "<section>"; |
| 40 | 40 | |
| 41 | 41 | print "<table>"; |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | |
| 94 | 94 | while ($line = $sth->fetch()) { |
| 95 | 95 | $label = array(); |
| 96 | - $label['id'] = 'LABEL:' . $line['id']; |
|
| 96 | + $label['id'] = 'LABEL:'.$line['id']; |
|
| 97 | 97 | $label['bare_id'] = $line['id']; |
| 98 | 98 | $label['name'] = $line['caption']; |
| 99 | 99 | $label['fg_color'] = $line['fg_color']; |
@@ -254,7 +254,7 @@ discard block |
||
| 254 | 254 | print "<div dojoType='fox.Toolbar'>"; |
| 255 | 255 | |
| 256 | 256 | print "<div dojoType='fox.form.DropDownButton'>". |
| 257 | - "<span>" . __('Select')."</span>"; |
|
| 257 | + "<span>".__('Select')."</span>"; |
|
| 258 | 258 | print "<div dojoType=\"dijit.Menu\" style=\"display: none;\">"; |
| 259 | 259 | print "<div onclick=\"dijit.byId('labelTree').model.setAllChecked(true)\" |
| 260 | 260 | dojoType=\"dijit.MenuItem\">".__('All')."</div>"; |
@@ -80,14 +80,14 @@ discard block |
||
| 80 | 80 | |
| 81 | 81 | if (strpos($feed_id, "CAT:") === 0) { |
| 82 | 82 | $cat_id = (int) substr($feed_id, 4); |
| 83 | - array_push($scope_inner_qparts, "cat_id = " . $this->pdo->quote($cat_id)); |
|
| 83 | + array_push($scope_inner_qparts, "cat_id = ".$this->pdo->quote($cat_id)); |
|
| 84 | 84 | } else if ($feed_id > 0) { |
| 85 | - array_push($scope_inner_qparts, "feed_id = " . $this->pdo->quote($feed_id)); |
|
| 85 | + array_push($scope_inner_qparts, "feed_id = ".$this->pdo->quote($feed_id)); |
|
| 86 | 86 | } |
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | if (count($scope_inner_qparts) > 0) { |
| 90 | - array_push($scope_qparts, "(" . implode(" OR ", $scope_inner_qparts) . ")"); |
|
| 90 | + array_push($scope_qparts, "(".implode(" OR ", $scope_inner_qparts).")"); |
|
| 91 | 91 | } |
| 92 | 92 | |
| 93 | 93 | array_push($filter["rules"], $rule); |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | |
| 101 | 101 | if (count($scope_qparts) == 0) $scope_qparts = ["true"]; |
| 102 | 102 | |
| 103 | - $glue = $filter['match_any_rule'] ? " OR " : " AND "; |
|
| 103 | + $glue = $filter['match_any_rule'] ? " OR " : " AND "; |
|
| 104 | 104 | $scope_qpart = join($glue, $scope_qparts); |
| 105 | 105 | |
| 106 | 106 | if (!$scope_qpart) $scope_qpart = "true"; |
@@ -146,9 +146,9 @@ discard block |
||
| 146 | 146 | |
| 147 | 147 | $content_preview = $line["content_preview"]; |
| 148 | 148 | |
| 149 | - $tmp = "<li><span class='title'>" . $line["title"] . "</span><br/>" . |
|
| 150 | - "<span class='feed'>" . $line['feed_title'] . "</span>, <span class='date'>" . mb_substr($line["date_entered"], 0, 16) . "</span>" . |
|
| 151 | - "<div class='preview text-muted'>" . $content_preview . "</div>" . |
|
| 149 | + $tmp = "<li><span class='title'>".$line["title"]."</span><br/>". |
|
| 150 | + "<span class='feed'>".$line['feed_title']."</span>, <span class='date'>".mb_substr($line["date_entered"], 0, 16)."</span>". |
|
| 151 | + "<div class='preview text-muted'>".$content_preview."</div>". |
|
| 152 | 152 | "</li>"; |
| 153 | 153 | |
| 154 | 154 | array_push($rv, $tmp); |
@@ -203,11 +203,11 @@ discard block |
||
| 203 | 203 | foreach ($feeds as $feed_id) { |
| 204 | 204 | |
| 205 | 205 | if (strpos($feed_id, "CAT:") === 0) { |
| 206 | - $feed_id = (int)substr($feed_id, 4); |
|
| 206 | + $feed_id = (int) substr($feed_id, 4); |
|
| 207 | 207 | array_push($feeds_fmt, Feeds::getCategoryTitle($feed_id)); |
| 208 | 208 | } else { |
| 209 | 209 | if ($feed_id) |
| 210 | - array_push($feeds_fmt, Feeds::getFeedTitle((int)$feed_id)); |
|
| 210 | + array_push($feeds_fmt, Feeds::getFeedTitle((int) $feed_id)); |
|
| 211 | 211 | else |
| 212 | 212 | array_push($feeds_fmt, __("All feeds")); |
| 213 | 213 | } |
@@ -218,8 +218,7 @@ discard block |
||
| 218 | 218 | } else { |
| 219 | 219 | |
| 220 | 220 | $where = $line["cat_filter"] ? |
| 221 | - Feeds::getCategoryTitle($line["cat_id"]) : |
|
| 222 | - ($line["feed_id"] ? |
|
| 221 | + Feeds::getCategoryTitle($line["cat_id"]) : ($line["feed_id"] ? |
|
| 223 | 222 | Feeds::getFeedTitle($line["feed_id"]) : __("All feeds")); |
| 224 | 223 | } |
| 225 | 224 | |
@@ -227,11 +226,11 @@ discard block |
||
| 227 | 226 | |
| 228 | 227 | $inverse = $line["inverse"] ? "inverse" : ""; |
| 229 | 228 | |
| 230 | - $rv .= "<li class='$inverse'>" . T_sprintf("%s on %s in %s %s", |
|
| 229 | + $rv .= "<li class='$inverse'>".T_sprintf("%s on %s in %s %s", |
|
| 231 | 230 | htmlspecialchars($line["reg_exp"]), |
| 232 | 231 | $line["field"], |
| 233 | 232 | $where, |
| 234 | - $line["inverse"] ? __("(inverse)") : "") . "</li>"; |
|
| 233 | + $line["inverse"] ? __("(inverse)") : "")."</li>"; |
|
| 235 | 234 | } |
| 236 | 235 | |
| 237 | 236 | return $rv; |
@@ -294,12 +293,12 @@ discard block |
||
| 294 | 293 | //$fg_color = $label_row["fg_color"]; |
| 295 | 294 | $bg_color = $label_row["bg_color"]; |
| 296 | 295 | |
| 297 | - $name[1] = "<i class=\"material-icons\" style='color : $bg_color; margin-right : 4px'>label</i>" . $name[1]; |
|
| 296 | + $name[1] = "<i class=\"material-icons\" style='color : $bg_color; margin-right : 4px'>label</i>".$name[1]; |
|
| 298 | 297 | } |
| 299 | 298 | } |
| 300 | 299 | |
| 301 | 300 | $filter = array(); |
| 302 | - $filter['id'] = 'FILTER:' . $line['id']; |
|
| 301 | + $filter['id'] = 'FILTER:'.$line['id']; |
|
| 303 | 302 | $filter['bare_id'] = $line['id']; |
| 304 | 303 | $filter['name'] = $name[0]; |
| 305 | 304 | $filter['param'] = $name[1]; |
@@ -357,7 +356,7 @@ discard block |
||
| 357 | 356 | print "<div dojoType=\"fox.Toolbar\">"; |
| 358 | 357 | |
| 359 | 358 | print "<div dojoType=\"fox.form.DropDownButton\">". |
| 360 | - "<span>" . __('Select')."</span>"; |
|
| 359 | + "<span>".__('Select')."</span>"; |
|
| 361 | 360 | print "<div dojoType=\"dijit.Menu\" style=\"display: none;\">"; |
| 362 | 361 | print "<div onclick=\"dijit.byId('filterEditDlg').selectRules(true)\" |
| 363 | 362 | dojoType=\"dijit.MenuItem\">".__('All')."</div>"; |
@@ -384,12 +383,12 @@ discard block |
||
| 384 | 383 | $line["feed_id"] = json_decode($line["match_on"], true); |
| 385 | 384 | } else { |
| 386 | 385 | if ($line["cat_filter"]) { |
| 387 | - $feed_id = "CAT:" . (int)$line["cat_id"]; |
|
| 386 | + $feed_id = "CAT:".(int) $line["cat_id"]; |
|
| 388 | 387 | } else { |
| 389 | - $feed_id = (int)$line["feed_id"]; |
|
| 388 | + $feed_id = (int) $line["feed_id"]; |
|
| 390 | 389 | } |
| 391 | 390 | |
| 392 | - $line["feed_id"] = ["" . $feed_id]; // set item type to string for in_array() |
|
| 391 | + $line["feed_id"] = ["".$feed_id]; // set item type to string for in_array() |
|
| 393 | 392 | } |
| 394 | 393 | |
| 395 | 394 | unset($line["cat_filter"]); |
@@ -417,7 +416,7 @@ discard block |
||
| 417 | 416 | print "<div dojoType=\"fox.Toolbar\">"; |
| 418 | 417 | |
| 419 | 418 | print "<div dojoType=\"fox.form.DropDownButton\">". |
| 420 | - "<span>" . __('Select')."</span>"; |
|
| 419 | + "<span>".__('Select')."</span>"; |
|
| 421 | 420 | print "<div dojoType=\"dijit.Menu\" style=\"display: none;\">"; |
| 422 | 421 | print "<div onclick=\"dijit.byId('filterEditDlg').selectActions(true)\" |
| 423 | 422 | dojoType=\"dijit.MenuItem\">".__('All')."</div>"; |
@@ -528,11 +527,11 @@ discard block |
||
| 528 | 527 | foreach ($feeds as $feed_id) { |
| 529 | 528 | |
| 530 | 529 | if (strpos($feed_id, "CAT:") === 0) { |
| 531 | - $feed_id = (int)substr($feed_id, 4); |
|
| 530 | + $feed_id = (int) substr($feed_id, 4); |
|
| 532 | 531 | array_push($feeds_fmt, Feeds::getCategoryTitle($feed_id)); |
| 533 | 532 | } else { |
| 534 | 533 | if ($feed_id) |
| 535 | - array_push($feeds_fmt, Feeds::getFeedTitle((int)$feed_id)); |
|
| 534 | + array_push($feeds_fmt, Feeds::getFeedTitle((int) $feed_id)); |
|
| 536 | 535 | else |
| 537 | 536 | array_push($feeds_fmt, __("All feeds")); |
| 538 | 537 | } |
@@ -542,7 +541,7 @@ discard block |
||
| 542 | 541 | |
| 543 | 542 | $sth = $this->pdo->prepare("SELECT description FROM ttrss_filter_types |
| 544 | 543 | WHERE id = ?"); |
| 545 | - $sth->execute([(int)$rule["filter_type"]]); |
|
| 544 | + $sth->execute([(int) $rule["filter_type"]]); |
|
| 546 | 545 | |
| 547 | 546 | if ($row = $sth->fetch()) { |
| 548 | 547 | $filter_type = $row["description"]; |
@@ -552,9 +551,9 @@ discard block |
||
| 552 | 551 | |
| 553 | 552 | $inverse = isset($rule["inverse"]) ? "inverse" : ""; |
| 554 | 553 | |
| 555 | - return "<span class='filterRule $inverse'>" . |
|
| 554 | + return "<span class='filterRule $inverse'>". |
|
| 556 | 555 | T_sprintf("%s on %s in %s %s", htmlspecialchars($rule["reg_exp"]), |
| 557 | - $filter_type, $feed, isset($rule["inverse"]) ? __("(inverse)") : "") . "</span>"; |
|
| 556 | + $filter_type, $feed, isset($rule["inverse"]) ? __("(inverse)") : "")."</span>"; |
|
| 558 | 557 | } |
| 559 | 558 | |
| 560 | 559 | function printRuleName() { |
@@ -564,7 +563,7 @@ discard block |
||
| 564 | 563 | private function getActionName($action) { |
| 565 | 564 | $sth = $this->pdo->prepare("SELECT description FROM |
| 566 | 565 | ttrss_filter_actions WHERE id = ?"); |
| 567 | - $sth->execute([(int)$action["action_id"]]); |
|
| 566 | + $sth->execute([(int) $action["action_id"]]); |
|
| 568 | 567 | |
| 569 | 568 | $title = ""; |
| 570 | 569 | |
@@ -574,7 +573,7 @@ discard block |
||
| 574 | 573 | |
| 575 | 574 | if ($action["action_id"] == 4 || $action["action_id"] == 6 || |
| 576 | 575 | $action["action_id"] == 7) |
| 577 | - $title .= ": " . $action["action_param"]; |
|
| 576 | + $title .= ": ".$action["action_param"]; |
|
| 578 | 577 | |
| 579 | 578 | if ($action["action_id"] == 9) { |
| 580 | 579 | list ($pfclass, $pfaction) = explode(":", $action["action_param"]); |
@@ -584,7 +583,7 @@ discard block |
||
| 584 | 583 | foreach ($filter_actions as $fclass => $factions) { |
| 585 | 584 | foreach ($factions as $faction) { |
| 586 | 585 | if ($pfaction == $faction["action"] && $pfclass == $fclass) { |
| 587 | - $title .= ": " . $fclass . ": " . $faction["description"]; |
|
| 586 | + $title .= ": ".$fclass.": ".$faction["description"]; |
|
| 588 | 587 | break; |
| 589 | 588 | } |
| 590 | 589 | } |
@@ -681,7 +680,7 @@ discard block |
||
| 681 | 680 | $reg_exp = trim($rule["reg_exp"]); |
| 682 | 681 | $inverse = isset($rule["inverse"]) ? 1 : 0; |
| 683 | 682 | |
| 684 | - $filter_type = (int)trim($rule["filter_type"]); |
|
| 683 | + $filter_type = (int) trim($rule["filter_type"]); |
|
| 685 | 684 | $match_on = json_encode($rule["feed_id"]); |
| 686 | 685 | |
| 687 | 686 | $rsth->execute([$filter_id, $reg_exp, $filter_type, $match_on, $inverse]); |
@@ -695,7 +694,7 @@ discard block |
||
| 695 | 694 | foreach ($actions as $action) { |
| 696 | 695 | if ($action) { |
| 697 | 696 | |
| 698 | - $action_id = (int)$action["action_id"]; |
|
| 697 | + $action_id = (int) $action["action_id"]; |
|
| 699 | 698 | $action_param = $action["action_param"]; |
| 700 | 699 | $action_param_label = $action["action_param_label"]; |
| 701 | 700 | |
@@ -704,7 +703,7 @@ discard block |
||
| 704 | 703 | } |
| 705 | 704 | |
| 706 | 705 | if ($action_id == 6) { |
| 707 | - $action_param = (int)str_replace("+", "", $action_param); |
|
| 706 | + $action_param = (int) str_replace("+", "", $action_param); |
|
| 708 | 707 | } |
| 709 | 708 | |
| 710 | 709 | $asth->execute([$filter_id, $action_id, $action_param]); |
@@ -773,7 +772,7 @@ discard block |
||
| 773 | 772 | </div>"; |
| 774 | 773 | |
| 775 | 774 | print "<div dojoType=\"fox.form.DropDownButton\">". |
| 776 | - "<span>" . __('Select')."</span>"; |
|
| 775 | + "<span>".__('Select')."</span>"; |
|
| 777 | 776 | print "<div dojoType=\"dijit.Menu\" style=\"display: none;\">"; |
| 778 | 777 | print "<div onclick=\"dijit.byId('filterTree').model.setAllChecked(true)\" |
| 779 | 778 | dojoType=\"dijit.MenuItem\">".__('All')."</div>"; |
@@ -859,7 +858,7 @@ discard block |
||
| 859 | 858 | print "<div dojoType='fox.Toolbar'>"; |
| 860 | 859 | |
| 861 | 860 | print "<div dojoType='fox.form.DropDownButton'>". |
| 862 | - "<span>" . __('Select')."</span>"; |
|
| 861 | + "<span>".__('Select')."</span>"; |
|
| 863 | 862 | print "<div dojoType='dijit.Menu' style='display: none'>"; |
| 864 | 863 | print "<div onclick=\"dijit.byId('filterEditDlg').selectRules(true)\" |
| 865 | 864 | dojoType='dijit.MenuItem'>".__('All')."</div>"; |
@@ -888,7 +887,7 @@ discard block |
||
| 888 | 887 | print "<div dojoType='fox.Toolbar'>"; |
| 889 | 888 | |
| 890 | 889 | print "<div dojoType='fox.form.DropDownButton'>". |
| 891 | - "<span>" . __('Select')."</span>"; |
|
| 890 | + "<span>".__('Select')."</span>"; |
|
| 892 | 891 | print "<div dojoType='dijit.Menu' style='display: none'>"; |
| 893 | 892 | print "<div onclick=\"dijit.byId('filterEditDlg').selectActions(true)\" |
| 894 | 893 | dojoType='dijit.MenuItem'>".__('All')."</div>"; |
@@ -992,10 +991,10 @@ discard block |
||
| 992 | 991 | print "</fieldset>"; |
| 993 | 992 | |
| 994 | 993 | print "<fieldset>"; |
| 995 | - print "<label style='display : inline'>". __("on field") . "</label> "; |
|
| 994 | + print "<label style='display : inline'>".__("on field")."</label> "; |
|
| 996 | 995 | print_select_hash("filter_type", $filter_type, $filter_types, |
| 997 | 996 | 'dojoType="fox.form.Select"'); |
| 998 | - print "<label style='padding-left : 10px; display : inline'>" . __("in") . "</label> "; |
|
| 997 | + print "<label style='padding-left : 10px; display : inline'>".__("in")."</label> "; |
|
| 999 | 998 | |
| 1000 | 999 | print "</fieldset>"; |
| 1001 | 1000 | |
@@ -1031,7 +1030,7 @@ discard block |
||
| 1031 | 1030 | |
| 1032 | 1031 | if ($action) { |
| 1033 | 1032 | $action_param = $action["action_param"]; |
| 1034 | - $action_id = (int)$action["action_id"]; |
|
| 1033 | + $action_id = (int) $action["action_id"]; |
|
| 1035 | 1034 | } else { |
| 1036 | 1035 | $action_param = ""; |
| 1037 | 1036 | $action_id = 0; |
@@ -1062,8 +1061,8 @@ discard block |
||
| 1062 | 1061 | $param_hidden = ($action_id == 4 || $action_id == 6) ? |
| 1063 | 1062 | "" : "display : none"; |
| 1064 | 1063 | |
| 1065 | - $label_param_hidden = ($action_id == 7) ? "" : "display : none"; |
|
| 1066 | - $plugin_param_hidden = ($action_id == 9) ? "" : "display : none"; |
|
| 1064 | + $label_param_hidden = ($action_id == 7) ? "" : "display : none"; |
|
| 1065 | + $plugin_param_hidden = ($action_id == 9) ? "" : "display : none"; |
|
| 1067 | 1066 | |
| 1068 | 1067 | print "<span id='filterDlg_paramBox' style=\"$param_box_hidden\">"; |
| 1069 | 1068 | print " "; |
@@ -1082,8 +1081,8 @@ discard block |
||
| 1082 | 1081 | foreach ($filter_actions as $fclass => $factions) { |
| 1083 | 1082 | foreach ($factions as $faction) { |
| 1084 | 1083 | |
| 1085 | - $filter_action_hash[$fclass . ":" . $faction["action"]] = |
|
| 1086 | - $fclass . ": " . $faction["description"]; |
|
| 1084 | + $filter_action_hash[$fclass.":".$faction["action"]] = |
|
| 1085 | + $fclass.": ".$faction["description"]; |
|
| 1087 | 1086 | } |
| 1088 | 1087 | } |
| 1089 | 1088 | |
@@ -1153,8 +1152,8 @@ discard block |
||
| 1153 | 1152 | $num_actions -= 1; |
| 1154 | 1153 | } |
| 1155 | 1154 | |
| 1156 | - if ($match_any_rule) $title .= " (" . __("matches any rule") . ")"; |
|
| 1157 | - if ($inverse) $title .= " (" . __("inverse") . ")"; |
|
| 1155 | + if ($match_any_rule) $title .= " (".__("matches any rule").")"; |
|
| 1156 | + if ($inverse) $title .= " (".__("inverse").")"; |
|
| 1158 | 1157 | |
| 1159 | 1158 | if ($num_actions > 0) |
| 1160 | 1159 | $actions = sprintf(_ngettext("%s (+%d action)", "%s (+%d actions)", (int) $num_actions), $actions, $num_actions); |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | print "<fieldset>"; |
| 55 | - print "<label>" . __("Login:") . "</label>"; |
|
| 55 | + print "<label>".__("Login:")."</label>"; |
|
| 56 | 56 | print "<input style='font-size : 16px' |
| 57 | 57 | dojoType='dijit.form.ValidationTextBox' required='1' |
| 58 | 58 | $sel_disabled name='login' value=\"$login\">"; |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | |
| 66 | 66 | print "<fieldset>"; |
| 67 | 67 | |
| 68 | - print "<label>" . __('Access level: ') . "</label> "; |
|
| 68 | + print "<label>".__('Access level: ')."</label> "; |
|
| 69 | 69 | |
| 70 | 70 | if (!$sel_disabled) { |
| 71 | 71 | print_select_hash("access_level", $access_level, $access_level_names, |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | print "</fieldset>"; |
| 80 | 80 | print "<fieldset>"; |
| 81 | 81 | |
| 82 | - print "<label>" . __("New password:") . "</label> "; |
|
| 82 | + print "<label>".__("New password:")."</label> "; |
|
| 83 | 83 | print "<input dojoType='dijit.form.TextBox' type='password' size='20' placeholder='Change password' |
| 84 | 84 | name='password'>"; |
| 85 | 85 | |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | print "<section>"; |
| 92 | 92 | |
| 93 | 93 | print "<fieldset>"; |
| 94 | - print "<label>" . __("E-mail:") . "</label> "; |
|
| 94 | + print "<label>".__("E-mail:")."</label> "; |
|
| 95 | 95 | print "<input dojoType='dijit.form.TextBox' size='30' name='email' |
| 96 | 96 | value=\"$email\">"; |
| 97 | 97 | print "</fieldset>"; |
@@ -337,7 +337,7 @@ discard block |
||
| 337 | 337 | } |
| 338 | 338 | |
| 339 | 339 | print "<div dojoType='fox.form.DropDownButton'>". |
| 340 | - "<span>" . __('Select')."</span>"; |
|
| 340 | + "<span>".__('Select')."</span>"; |
|
| 341 | 341 | print "<div dojoType='dijit.Menu' style='display: none'>"; |
| 342 | 342 | print "<div onclick=\"Tables.select('prefUserList', true)\" |
| 343 | 343 | dojoType='dijit.MenuItem'>".__('All')."</div>"; |
@@ -405,12 +405,12 @@ discard block |
||
| 405 | 405 | print "<td align='center'><input onclick='Tables.onRowChecked(this); event.stopPropagation();' |
| 406 | 406 | dojoType='dijit.form.CheckBox' type='checkbox'></td>"; |
| 407 | 407 | |
| 408 | - print "<td title='".__('Click to edit')."'><i class='material-icons'>person</i> " . $line["login"] . "</td>"; |
|
| 408 | + print "<td title='".__('Click to edit')."'><i class='material-icons'>person</i> ".$line["login"]."</td>"; |
|
| 409 | 409 | |
| 410 | - print "<td>" . $access_level_names[$line["access_level"]] . "</td>"; |
|
| 411 | - print "<td>" . $line["num_feeds"] . "</td>"; |
|
| 412 | - print "<td>" . $line["created"] . "</td>"; |
|
| 413 | - print "<td>" . $line["last_login"] . "</td>"; |
|
| 410 | + print "<td>".$access_level_names[$line["access_level"]]."</td>"; |
|
| 411 | + print "<td>".$line["num_feeds"]."</td>"; |
|
| 412 | + print "<td>".$line["created"]."</td>"; |
|
| 413 | + print "<td>".$line["last_login"]."</td>"; |
|
| 414 | 414 | |
| 415 | 415 | print "</tr>"; |
| 416 | 416 | |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | function pubOPMLUrl() { |
| 39 | 39 | $url_path = Opml::opml_publish_url(); |
| 40 | 40 | |
| 41 | - print "<header>" . __("Your Public OPML URL is:") . "</header>"; |
|
| 41 | + print "<header>".__("Your Public OPML URL is:")."</header>"; |
|
| 42 | 42 | |
| 43 | 43 | print "<section>"; |
| 44 | 44 | |
@@ -67,18 +67,18 @@ discard block |
||
| 67 | 67 | if ($this->param == 1) { |
| 68 | 68 | print __("Update daemon is enabled in configuration, but daemon process is not running, which prevents all feeds from updating. Please start the daemon process or contact instance owner."); |
| 69 | 69 | |
| 70 | - $stamp = (int) file_get_contents(LOCK_DIRECTORY . "/update_daemon.stamp"); |
|
| 70 | + $stamp = (int) file_get_contents(LOCK_DIRECTORY."/update_daemon.stamp"); |
|
| 71 | 71 | |
| 72 | - print "<p>" . __("Last update:") . " " . date("Y.m.d, G:i", $stamp); |
|
| 72 | + print "<p>".__("Last update:")." ".date("Y.m.d, G:i", $stamp); |
|
| 73 | 73 | |
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | if ($this->param == 3) { |
| 77 | 77 | print __("Update daemon is taking too long to perform a feed update. This could indicate a problem like crash or a hang. Please check the daemon process or contact instance owner."); |
| 78 | 78 | |
| 79 | - $stamp = (int) file_get_contents(LOCK_DIRECTORY . "/update_daemon.stamp"); |
|
| 79 | + $stamp = (int) file_get_contents(LOCK_DIRECTORY."/update_daemon.stamp"); |
|
| 80 | 80 | |
| 81 | - print "<p>" . __("Last update:") . " " . date("Y.m.d, G:i", $stamp); |
|
| 81 | + print "<p>".__("Last update:")." ".date("Y.m.d, G:i", $stamp); |
|
| 82 | 82 | |
| 83 | 83 | } |
| 84 | 84 | |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | $tags[$line["tag_name"]] = $line["count"]; |
| 109 | 109 | } |
| 110 | 110 | |
| 111 | - if(count($tags) == 0 ){ return; } |
|
| 111 | + if (count($tags) == 0) { return; } |
|
| 112 | 112 | |
| 113 | 113 | ksort($tags); |
| 114 | 114 | |
@@ -138,9 +138,9 @@ discard block |
||
| 138 | 138 | |
| 139 | 139 | $key_escaped = str_replace("'", "\\'", $key); |
| 140 | 140 | |
| 141 | - echo "<a href=\"#\" onclick=\"Feeds.open({feed:'$key_escaped'}) \" style=\"font-size: " . |
|
| 142 | - $size . "px\" title=\"$value articles tagged with " . |
|
| 143 | - $key . '">' . $key . '</a> '; |
|
| 141 | + echo "<a href=\"#\" onclick=\"Feeds.open({feed:'$key_escaped'}) \" style=\"font-size: ". |
|
| 142 | + $size."px\" title=\"$value articles tagged with ". |
|
| 143 | + $key.'">'.$key.'</a> '; |
|
| 144 | 144 | } |
| 145 | 145 | |
| 146 | 146 | |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | |
| 164 | 164 | $key = Feeds::get_feed_access_key($feed_id, $is_cat); |
| 165 | 165 | |
| 166 | - $url_path = htmlspecialchars($this->params[2]) . "&key=" . $key; |
|
| 166 | + $url_path = htmlspecialchars($this->params[2])."&key=".$key; |
|
| 167 | 167 | |
| 168 | 168 | $feed_title = Feeds::getFeedTitle($feed_id, $is_cat); |
| 169 | 169 | |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | $new_feed_id = $row['id']; |
| 238 | 238 | } else { |
| 239 | 239 | $row = $this->pdo->query("SELECT MAX(id) AS id FROM ttrss_archived_feeds")->fetch(); |
| 240 | - $new_feed_id = (int)$row['id'] + 1; |
|
| 240 | + $new_feed_id = (int) $row['id'] + 1; |
|
| 241 | 241 | |
| 242 | 242 | $sth = $this->pdo->prepare("INSERT INTO ttrss_archived_feeds |
| 243 | 243 | (id, owner_uid, title, feed_url, site_url, created) |
@@ -287,7 +287,7 @@ discard block |
||
| 287 | 287 | /* GET["cmode"] = 0 - mark as read, 1 - as unread, 2 - toggle */ |
| 288 | 288 | function catchupSelected() { |
| 289 | 289 | $ids = explode(",", clean($_REQUEST["ids"])); |
| 290 | - $cmode = (int)clean($_REQUEST["cmode"]); |
|
| 290 | + $cmode = (int) clean($_REQUEST["cmode"]); |
|
| 291 | 291 | |
| 292 | 292 | Article::catchupArticlesById($ids, $cmode); |
| 293 | 293 | |
@@ -296,7 +296,7 @@ discard block |
||
| 296 | 296 | |
| 297 | 297 | function markSelected() { |
| 298 | 298 | $ids = explode(",", clean($_REQUEST["ids"])); |
| 299 | - $cmode = (int)clean($_REQUEST["cmode"]); |
|
| 299 | + $cmode = (int) clean($_REQUEST["cmode"]); |
|
| 300 | 300 | |
| 301 | 301 | $this->markArticlesById($ids, $cmode); |
| 302 | 302 | |
@@ -305,7 +305,7 @@ discard block |
||
| 305 | 305 | |
| 306 | 306 | function publishSelected() { |
| 307 | 307 | $ids = explode(",", clean($_REQUEST["ids"])); |
| 308 | - $cmode = (int)clean($_REQUEST["cmode"]); |
|
| 308 | + $cmode = (int) clean($_REQUEST["cmode"]); |
|
| 309 | 309 | |
| 310 | 310 | $this->publishArticlesById($ids, $cmode); |
| 311 | 311 | |
@@ -342,7 +342,7 @@ discard block |
||
| 342 | 342 | |
| 343 | 343 | print "<ul>"; |
| 344 | 344 | while ($line = $sth->fetch()) { |
| 345 | - print "<li>" . $line["caption"] . "</li>"; |
|
| 345 | + print "<li>".$line["caption"]."</li>"; |
|
| 346 | 346 | } |
| 347 | 347 | print "</ul>"; |
| 348 | 348 | } |
@@ -578,7 +578,7 @@ discard block |
||
| 578 | 578 | |
| 579 | 579 | if ($msg) { |
| 580 | 580 | Logger::get()->log_error(E_USER_WARNING, |
| 581 | - $msg, 'client-js:' . $file, $line, $context); |
|
| 581 | + $msg, 'client-js:'.$file, $line, $context); |
|
| 582 | 582 | |
| 583 | 583 | echo json_encode(array("message" => "HOST_ERROR_LOGGED")); |
| 584 | 584 | } else { |
@@ -602,7 +602,7 @@ discard block |
||
| 602 | 602 | $content = json_decode($content, true); |
| 603 | 603 | |
| 604 | 604 | if ($content && isset($content["changeset"])) { |
| 605 | - if ($git_timestamp < (int)$content["changeset"]["timestamp"] && |
|
| 605 | + if ($git_timestamp < (int) $content["changeset"]["timestamp"] && |
|
| 606 | 606 | $git_commit != $content["changeset"]["id"]) { |
| 607 | 607 | |
| 608 | 608 | $rv = $content["changeset"]; |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | } |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | - static function get_all_labels($owner_uid) { |
|
| 40 | + static function get_all_labels($owner_uid) { |
|
| 41 | 41 | $rv = array(); |
| 42 | 42 | |
| 43 | 43 | $pdo = Db::pdo(); |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | - static function clear_cache($id) { |
|
| 73 | + static function clear_cache($id) { |
|
| 74 | 74 | |
| 75 | 75 | $pdo = Db::pdo(); |
| 76 | 76 | |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | Labels::clear_cache($id); |
| 99 | 99 | } |
| 100 | 100 | |
| 101 | - static function add_article($id, $label, $owner_uid) { |
|
| 101 | + static function add_article($id, $label, $owner_uid) { |
|
| 102 | 102 | |
| 103 | 103 | $label_id = Labels::find_id($label, $owner_uid); |
| 104 | 104 | |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | if (!$tr_in_progress) $pdo->commit(); |
| 172 | 172 | } |
| 173 | 173 | |
| 174 | - static function create($caption, $fg_color = '', $bg_color = '', $owner_uid = false) { |
|
| 174 | + static function create($caption, $fg_color = '', $bg_color = '', $owner_uid = false) { |
|
| 175 | 175 | |
| 176 | 176 | if (!$owner_uid) $owner_uid = $_SESSION['uid']; |
| 177 | 177 | |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | |
| 41 | 41 | $ts = strftime("%H:%M:%S", time()); |
| 42 | 42 | if (function_exists('posix_getpid')) { |
| 43 | - $ts = "$ts/" . posix_getpid(); |
|
| 43 | + $ts = "$ts/".posix_getpid(); |
|
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | if (Debug::$logfile) { |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | |
| 61 | 61 | if (!$locked) { |
| 62 | 62 | fclose($fp); |
| 63 | - user_error("Unable to lock debugging log file: " . Debug::$logfile, E_USER_WARNING); |
|
| 63 | + user_error("Unable to lock debugging log file: ".Debug::$logfile, E_USER_WARNING); |
|
| 64 | 64 | return; |
| 65 | 65 | } |
| 66 | 66 | } |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | return; |
| 78 | 78 | |
| 79 | 79 | } else { |
| 80 | - user_error("Unable to open debugging log file: " . Debug::$logfile, E_USER_WARNING); |
|
| 80 | + user_error("Unable to open debugging log file: ".Debug::$logfile, E_USER_WARNING); |
|
| 81 | 81 | } |
| 82 | 82 | } |
| 83 | 83 | |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | $priority = LOG_INFO; |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | - $errname = Logger::$errornames[$errno] . " ($errno)"; |
|
| 27 | + $errname = Logger::$errornames[$errno]." ($errno)"; |
|
| 28 | 28 | |
| 29 | 29 | syslog($priority, "[tt-rss] $errname ($file:$line) $errstr"); |
| 30 | 30 | |