Index: trunk/extensions/Translate/utils/TranslationHelpers.php |
— | — | @@ -881,12 +881,14 @@ |
882 | 882 | $conds = array( |
883 | 883 | 'rt_page' => $this->title->getArticleId(), |
884 | 884 | 'rt_type' => RevTag::getType( 'tp:transver' ), |
885 | | - 'rt_revision' => $this->title->getLatestRevID(), |
886 | 885 | ); |
| 886 | + $options = array( |
| 887 | + 'ORDER BY' => 'rt_revision DESC', |
| 888 | + ); |
887 | 889 | |
888 | 890 | $latestRevision = $definitionTitle->getLatestRevID(); |
889 | 891 | |
890 | | - $translationRevision = $db->selectField( 'revtag', 'rt_value', $conds, __METHOD__ ); |
| 892 | + $translationRevision = $db->selectField( 'revtag', 'rt_value', $conds, __METHOD__, $options ); |
891 | 893 | if ( $translationRevision === false ) { |
892 | 894 | return null; |
893 | 895 | } |