@@ -88,9 +88,9 @@ discard block |
||
| 88 | 88 | $additionalWhere = ''; |
| 89 | 89 | // Check for pre-selected collections. |
| 90 | 90 | if (!empty($this->piVars['collection'])) { |
| 91 | - $additionalWhere = 'tx_dlf_collections.uid=' . intval($this->piVars['collection']); |
|
| 91 | + $additionalWhere = 'tx_dlf_collections.uid='.intval($this->piVars['collection']); |
|
| 92 | 92 | } elseif (!empty($this->conf['collections'])) { |
| 93 | - $additionalWhere = 'tx_dlf_collections.uid IN (' . implode(',', GeneralUtility::intExplode(',', $this->conf['collections'])) . ')'; |
|
| 93 | + $additionalWhere = 'tx_dlf_collections.uid IN ('.implode(',', GeneralUtility::intExplode(',', $this->conf['collections'])).')'; |
|
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class) |
@@ -121,16 +121,16 @@ discard block |
||
| 121 | 121 | $queryBuilder->expr()->eq('tx_dlf_collections.uid', $queryBuilder->quoteIdentifier('tx_dlf_documents_collections_mm.uid_foreign')) |
| 122 | 122 | ) |
| 123 | 123 | ->where( |
| 124 | - $queryBuilder->expr()->eq('tx_dlf_documents.pid', $queryBuilder->createNamedParameter((int)$this->conf['pages'])), |
|
| 124 | + $queryBuilder->expr()->eq('tx_dlf_documents.pid', $queryBuilder->createNamedParameter((int) $this->conf['pages'])), |
|
| 125 | 125 | $queryBuilder->expr()->eq('tx_dlf_documents_collections_mm.ident', $queryBuilder->createNamedParameter('docs_colls')), |
| 126 | - $queryBuilder->expr()->eq('tx_dlf_collections.pid', $queryBuilder->createNamedParameter((int)$this->conf['pages'])), |
|
| 126 | + $queryBuilder->expr()->eq('tx_dlf_collections.pid', $queryBuilder->createNamedParameter((int) $this->conf['pages'])), |
|
| 127 | 127 | $additionalWhere, |
| 128 | 128 | Helper::whereExpression('tx_dlf_documents'), |
| 129 | 129 | Helper::whereExpression('tx_dlf_collections') |
| 130 | 130 | ) |
| 131 | 131 | ->groupBy('tx_dlf_documents.uid') |
| 132 | 132 | ->orderBy('tx_dlf_documents.tstamp', 'DESC') |
| 133 | - ->setMaxResults((int)$this->conf['limit']) |
|
| 133 | + ->setMaxResults((int) $this->conf['limit']) |
|
| 134 | 134 | ->execute(); |
| 135 | 135 | $rows = $result->fetchAll(); |
| 136 | 136 | |
@@ -145,12 +145,12 @@ discard block |
||
| 145 | 145 | ) { |
| 146 | 146 | $superiorTitle = Document::getTitle($resArray['partof'], true); |
| 147 | 147 | if (!empty($superiorTitle)) { |
| 148 | - $title .= '[' . $superiorTitle . ']'; |
|
| 148 | + $title .= '['.$superiorTitle.']'; |
|
| 149 | 149 | } |
| 150 | 150 | } |
| 151 | 151 | // Get title of document. |
| 152 | 152 | if (!empty($resArray['title'])) { |
| 153 | - $title .= ' ' . $resArray['title']; |
|
| 153 | + $title .= ' '.$resArray['title']; |
|
| 154 | 154 | } |
| 155 | 155 | // Set default title if empty. |
| 156 | 156 | if (empty($title)) { |
@@ -158,13 +158,13 @@ discard block |
||
| 158 | 158 | } |
| 159 | 159 | // Append volume information. |
| 160 | 160 | if (!empty($resArray['volume'])) { |
| 161 | - $title .= ', ' . $this->pi_getLL('volume') . ' ' . $resArray['volume']; |
|
| 161 | + $title .= ', '.$this->pi_getLL('volume').' '.$resArray['volume']; |
|
| 162 | 162 | } |
| 163 | 163 | // Is this document new or updated? |
| 164 | 164 | if ($resArray['crdate'] == $resArray['tstamp']) { |
| 165 | - $title = $this->pi_getLL('new') . ' ' . trim($title); |
|
| 165 | + $title = $this->pi_getLL('new').' '.trim($title); |
|
| 166 | 166 | } else { |
| 167 | - $title = $this->pi_getLL('update') . ' ' . trim($title); |
|
| 167 | + $title = $this->pi_getLL('update').' '.trim($title); |
|
| 168 | 168 | } |
| 169 | 169 | $item->appendChild($rss->createElement('title', htmlspecialchars($title, ENT_NOQUOTES, 'UTF-8'))); |
| 170 | 170 | // Add link. |
@@ -196,10 +196,10 @@ discard block |
||
| 196 | 196 | // Send headers. |
| 197 | 197 | header('HTTP/1.1 200 OK'); |
| 198 | 198 | header('Cache-Control: no-cache'); |
| 199 | - header('Content-Length: ' . strlen($content)); |
|
| 199 | + header('Content-Length: '.strlen($content)); |
|
| 200 | 200 | header('Content-Type: application/rss+xml; charset=utf-8'); |
| 201 | - header('Date: ' . date('r', $GLOBALS['EXEC_TIME'])); |
|
| 202 | - header('Expires: ' . date('r', $GLOBALS['EXEC_TIME'])); |
|
| 201 | + header('Date: '.date('r', $GLOBALS['EXEC_TIME'])); |
|
| 202 | + header('Expires: '.date('r', $GLOBALS['EXEC_TIME'])); |
|
| 203 | 203 | echo $content; |
| 204 | 204 | exit; |
| 205 | 205 | } |