From 47c24175d3125584517c76349503b4ecb74141a3 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Sat, 23 Jan 2010 22:26:40 +0000 Subject: Add/remove whitelines to increase readability in API code files --- includes/api/ApiQueryLangLinks.php | 1 + 1 file changed, 1 insertion(+) (limited to 'includes/api/ApiQueryLangLinks.php') diff --git a/includes/api/ApiQueryLangLinks.php b/includes/api/ApiQueryLangLinks.php index 0e7c8b52b513..9180c00f4feb 100644 --- a/includes/api/ApiQueryLangLinks.php +++ b/includes/api/ApiQueryLangLinks.php @@ -63,6 +63,7 @@ class ApiQueryLangLinks extends ApiQueryBase { "(ll_from = $llfrom AND " . "ll_lang >= '$lllang')" ); } + # Don't order by ll_from if it's constant in the WHERE clause if ( count( $this->getPageSet()->getGoodTitles() ) == 1 ) $this->addOption( 'ORDER BY', 'll_lang' ); -- cgit v1.2.3