From: Andrew Dolgov Date: Wed, 27 Oct 2010 08:06:26 +0000 (+0400) Subject: override order use date_entered instead of updated X-Git-Tag: 1.5.0~430 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=338302709c4bc64dfbe22b52c9f56df990aed963;p=tt-rss.git override order use date_entered instead of updated --- diff --git a/backend.php b/backend.php index 4b2202ce..06c1ecbd 100644 --- a/backend.php +++ b/backend.php @@ -319,25 +319,25 @@ switch ($order_by) { case "date": if (get_pref($link, 'REVERSE_HEADLINES', $owner_uid)) { - $override_order = "date_updated"; + $override_order = "date_entered"; } else { - $override_order = "date_updated DESC"; + $override_order = "date_entered DESC"; } break; case "title": if (get_pref($link, 'REVERSE_HEADLINES', $owner_uid)) { - $override_order = "title DESC, updated"; + $override_order = "title DESC, date_entered"; } else { - $override_order = "title, updated DESC"; + $override_order = "title, date_entered DESC"; } break; case "score": if (get_pref($link, 'REVERSE_HEADLINES', $owner_uid)) { - $override_order = "score, updated"; + $override_order = "score, date_entered"; } else { - $override_order = "score DESC, updated DESC"; + $override_order = "score DESC, date_entered DESC"; } break; }