[TASK] Fix code formatting
authorOliver Hader <oliver@typo3.org>
Fri, 26 Oct 2012 13:41:58 +0000 (15:41 +0200)
committerOliver Hader <oliver.hader@typo3.org>
Fri, 26 Oct 2012 14:06:14 +0000 (16:06 +0200)
Change-Id: Ib681cc7ea82d820655a856e0a8e391e3397844ea
Releases: 6.0
Reviewed-on: http://review.typo3.org/15957
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
typo3/sysext/backend/Classes/Controller/PageLayoutController.php
typo3/sysext/backend/Classes/Utility/BackendUtility.php

index 25ccd8a..5159e69 100644 (file)
@@ -1049,10 +1049,23 @@ class PageLayoutController {
         */
        public function exec_languageQuery($id) {
                if ($id) {
-                       $exQ = \TYPO3\CMS\Backend\Utility\BackendUtility::deleteClause('pages_language_overlay') . ($GLOBALS['BE_USER']->isAdmin() ? '' : ' AND sys_language.hidden=0');
-                       return $GLOBALS['TYPO3_DB']->exec_SELECTquery('sys_language.*', 'pages_language_overlay,sys_language', 'pages_language_overlay.sys_language_uid=sys_language.uid AND pages_language_overlay.pid=' . intval($id) . $exQ, 'pages_language_overlay.sys_language_uid,sys_language.uid,sys_language.pid,sys_language.tstamp,sys_language.hidden,sys_language.title,sys_language.static_lang_isocode,sys_language.flag', 'sys_language.title');
+                       $exQ = \TYPO3\CMS\Backend\Utility\BackendUtility::deleteClause('pages_language_overlay') .
+                               ($GLOBALS['BE_USER']->isAdmin() ? '' : ' AND sys_language.hidden=0');
+                       return $GLOBALS['TYPO3_DB']->exec_SELECTquery(
+                               'sys_language.*',
+                               'pages_language_overlay,sys_language',
+                               'pages_language_overlay.sys_language_uid=sys_language.uid AND pages_language_overlay.pid=' . intval($id) . $exQ,
+                               'pages_language_overlay.sys_language_uid,sys_language.uid,sys_language.pid,sys_language.tstamp,sys_language.hidden,sys_language.title,sys_language.static_lang_isocode,sys_language.flag',
+                               'sys_language.title'
+                       );
                } else {
-                       return $GLOBALS['TYPO3_DB']->exec_SELECTquery('sys_language.*', 'sys_language', 'sys_language.hidden=0', '', 'sys_language.title');
+                       return $GLOBALS['TYPO3_DB']->exec_SELECTquery(
+                               'sys_language.*',
+                               'sys_language',
+                               'sys_language.hidden=0',
+                               '',
+                               'sys_language.title'
+                       );
                }
        }
 
index 3bdf8ac..966c807 100644 (file)
@@ -155,7 +155,17 @@ class BackendUtility {
         */
        static public function getRecordsByField($theTable, $theField, $theValue, $whereClause = '', $groupBy = '', $orderBy = '', $limit = '', $useDeleteClause = TRUE) {
                if (is_array($GLOBALS['TCA'][$theTable])) {
-                       $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', $theTable, $theField . '=' . $GLOBALS['TYPO3_DB']->fullQuoteStr($theValue, $theTable) . ($useDeleteClause ? self::deleteClause($theTable) . ' ' : '') . self::versioningPlaceholderClause($theTable) . ' ' . $whereClause, $groupBy, $orderBy, $limit);
+                       $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
+                               '*',
+                               $theTable,
+                               $theField . '=' . $GLOBALS['TYPO3_DB']->fullQuoteStr($theValue, $theTable) .
+                                       ($useDeleteClause ? self::deleteClause($theTable) . ' ' : '') .
+                                       self::versioningPlaceholderClause($theTable) . ' ' .
+                                       $whereClause,
+                               $groupBy,
+                               $orderBy,
+                               $limit
+                       );
                        $rows = array();
                        while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
                                $rows[] = $row;