mirror of
https://github.com/friendica/friendica
synced 2025-04-25 02:30:11 +00:00
language field renamed to "language"
This commit is contained in:
parent
fc22a3e83f
commit
7faa42882b
9 changed files with 23 additions and 12 deletions
|
@ -324,7 +324,7 @@ class Timeline extends BaseModule
|
|||
} elseif ($this->selectedTab == ChannelEntity::AUDIO) {
|
||||
$condition = ["`media-type` & ?", 4];
|
||||
} elseif ($this->selectedTab == ChannelEntity::LANGUAGE) {
|
||||
$condition = ["`iso-639-1` = ?", User::getLanguageCode($uid)];
|
||||
$condition = ["`language` = ?", User::getLanguageCode($uid)];
|
||||
} elseif (is_numeric($this->selectedTab)) {
|
||||
$condition = $this->getUserChannelConditions($this->selectedTab, $uid);
|
||||
}
|
||||
|
@ -450,7 +450,7 @@ class Timeline extends BaseModule
|
|||
$conditions = [];
|
||||
$languages = $languages ?: User::getWantedLanguages($uid);
|
||||
foreach ($languages as $language) {
|
||||
$conditions[] = "`iso-639-1` = ?";
|
||||
$conditions[] = "`language` = ?";
|
||||
$condition[] = $language;
|
||||
}
|
||||
if (!empty($conditions)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue