Frenck Lutke
27b676b7b2
fix checkboxes shown as checked when they're not with mysql
...
The issue occurs because boolean/tinyint values are retrieved from mysql
as strings, and in php/js all non-empty strings are cast as boolean
true.
Current PDO mysql driver doesn't support `PDO::ATTR_STRINGIFY_FETCHES =
false`, and if I disable prepare-emulation so it uses the native MySQL
driver instead which supposedly does support it, prepare statements no
longer play nice with named parameters.
Every remaining clean solution that comes to mind that can cover all
cases, just for MySQL, adds an annoying amount of additional code /
overhead.
As long as the `App.FormFields.checkbox_tag()` JS function is the only
one suffering from the lack of conversion, I'll go with easy ugly over
here.
2021-02-25 12:24:23 +01:00
Frenck Lutke
2f2642bbd4
add fallback for feed_language on edit-feed-saving
...
Feed_language is only included in the form if running on pgsql, failing
the not null constraint on mysql setups.
2021-02-25 12:06:25 +01:00
Weblate
c70fc68012
Update translation files
...
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
Translation: Tiny Tiny RSS/messages
Translate-URL: https://weblate.tt-rss.org/projects/tt-rss/messages/
2021-02-24 18:58:52 +00:00
Andrew Dolgov
93940d2a9f
Merge branch 'master' of git.fakecake.org:fox/tt-rss into weblate-integration
2021-02-24 21:56:52 +03:00
Andrew Dolgov
1adacd0572
rebase translations
2021-02-24 19:55:18 +03:00
Andrew Dolgov
db583287b2
add hide/show events for feeds sidebar
2021-02-24 17:01:40 +03:00
Andrew Dolgov
2f14fa1bc3
add a hack to position labels on a dijit toolbar better
2021-02-24 15:53:47 +03:00
Andrew Dolgov
7f41228a71
decouple runtime-info object from counters
2021-02-24 15:40:19 +03:00
Andrew Dolgov
553548b689
request label counters conditionally
2021-02-24 15:07:31 +03:00
Andrew Dolgov
9313ebf2e7
fix warning in counters::get_feeds()
2021-02-24 13:25:26 +03:00
Andrew Dolgov
8b09e653e0
pass array to setScore
2021-02-24 12:10:09 +03:00
Andrew Dolgov
155e4f6125
pass a bunch of related arrays properly to backend
2021-02-24 12:07:25 +03:00
Andrew Dolgov
96182597c4
fix typo
2021-02-24 10:38:54 +03:00
Andrew Dolgov
9ad5f04e51
only request counters once for headline mutations
2021-02-24 10:31:03 +03:00
Andrew Dolgov
e468e5a589
cats_of: enforce owner_uid
2021-02-24 10:09:08 +03:00
Andrew Dolgov
6ea1430a04
no special counter handling for catchupAll
2021-02-24 10:01:39 +03:00
Andrew Dolgov
e6505b7d83
_cats_of: only request parents if needed
2021-02-24 09:56:59 +03:00
Andrew Dolgov
d6203bf350
try to calculate counters conditionally based on feed ids
2021-02-24 09:47:26 +03:00
Andrew Dolgov
a42e8aad97
add Errors.php
2021-02-23 22:31:43 +03:00
Andrew Dolgov
8d2e3c2528
drop errors.php and simplify error handling
2021-02-23 22:26:07 +03:00
Andrew Dolgov
37d46411c7
App.requestCounters() is not a thing
2021-02-23 17:43:35 +03:00
Andrew Dolgov
85095f8a53
rename TTRSS_SESSION_NAME to SESSION_NAME
2021-02-23 17:01:25 +03:00
Andrew Dolgov
ab4dafa4be
config: add a type hint system
2021-02-23 16:58:48 +03:00
Andrew Dolgov
9e2e12dff8
add some ;s
2021-02-23 13:36:02 +03:00
Andrew Dolgov
46e650622c
floIcon: declare images property
2021-02-23 11:05:58 +03:00
Andrew Dolgov
2ae0b7059f
cleanup some defined-stuff
2021-02-23 09:01:27 +03:00
Andrew Dolgov
5229cc58b2
Merge branch 'wip-config-object'
2021-02-23 08:34:37 +03:00
Andrew Dolgov
4ed91619dd
af_redditimgur: fix an oopsie
2021-02-23 00:28:05 +03:00
Andrew Dolgov
cae54dad56
af_redditimgur: fix an oopsie
2021-02-23 00:27:52 +03:00
Andrew Dolgov
6e4fbbfa4d
cleanup config.php-dist
2021-02-23 00:05:20 +03:00
Andrew Dolgov
29ada58b4a
move db-prefs shortcut functions to functions.php
2021-02-22 23:25:14 +03:00
Andrew Dolgov
77e6d589ff
allow adding custom config options
2021-02-22 23:20:52 +03:00
Andrew Dolgov
fd5dd27f16
Merge branch 'master' of git.tt-rss.org:fox/tt-rss into wip-config-object
2021-02-22 23:11:43 +03:00
fox
ac6cea859a
Merge pull request 'Check whether data is parsable by 'imagecreatefromstring' in jimIcon.' ( #7 ) from wn/tt-rss:jimIcon-imagecreatefromstring into master
...
Reviewed-on: https://git.tt-rss.org/fox/tt-rss/pulls/7
2021-02-22 23:10:43 +03:00
Andrew Dolgov
caf3040313
update config.php-dist
2021-02-22 23:04:50 +03:00
Andrew Dolgov
445ac1213c
finalize config:: migration; make config.php optional
2021-02-22 22:51:12 +03:00
Andrew Dolgov
6b7af973b2
update gitignore
2021-02-22 22:43:07 +03:00
Andrew Dolgov
12bcf826e4
don't include config.php everywhere
2021-02-22 22:39:20 +03:00
Andrew Dolgov
211f699aa0
migrate the rest into Config::
2021-02-22 22:35:27 +03:00
Andrew Dolgov
383f4ca04a
add config.php
2021-02-22 21:49:09 +03:00
Andrew Dolgov
e4107ac952
wip: initial for config object
2021-02-22 21:47:48 +03:00
wn_
7c966b69d5
Check whether data is parsable by 'imagecreatefromstring' in jimIcon.
2021-02-22 18:03:36 +00:00
Andrew Dolgov
42173386b3
dirname(__FILE__) -> __DIR__
2021-02-22 17:38:46 +03:00
Andrew Dolgov
add6242e51
do not use define_default() because it screws with static analyzers
2021-02-22 17:35:52 +03:00
fox
3f00502305
Merge pull request 'Let 'RSSUtils::check_feed_favicon' update existing favicons.' ( #6 ) from wn/tt-rss:check-feed-favicon into master
...
Reviewed-on: https://git.tt-rss.org/fox/tt-rss/pulls/6
2021-02-22 17:25:02 +03:00
wn_
6fbf7ef368
Remove check against the old file in 'RSSUtils::check_feed_favicon'.
2021-02-22 12:06:27 +00:00
Andrew Dolgov
be4e7b1340
fix several issues reported by phpstan
2021-02-22 14:41:09 +03:00
Andrew Dolgov
043ef3dad6
add chrome configuration for debugging
2021-02-22 13:44:25 +03:00
Andrew Dolgov
167ed87684
add launch.json for xdebug
2021-02-22 11:40:31 +03:00
Andrew Dolgov
33fff26869
reinstate HOOK_RENDER_ENCLOSURE
2021-02-22 10:00:50 +03:00