feed editor: use DEFAULT_SEARCH_LANGUAGE as a default per-feed dropdown value

This commit is contained in:
Andrew Dolgov 2019-04-10 13:08:32 +03:00
parent c936cc3a1f
commit ed22473272
1 changed files with 3 additions and 0 deletions

View File

@ -595,6 +595,9 @@ class Pref_Feeds extends Handler_Protected {
if (DB_TYPE == "pgsql") { if (DB_TYPE == "pgsql") {
$feed_language = $row["feed_language"]; $feed_language = $row["feed_language"];
if (!$feed_language)
$feed_language = get_pref('DEFAULT_SEARCH_LANGUAGE');
print "<fieldset>"; print "<fieldset>";
print "<label>" . __('Language:') . "</label> "; print "<label>" . __('Language:') . "</label> ";