@@ -269,10 +269,10 @@ |
||
269 | 269 | 'readOnly' => 1, |
270 | 270 | 'fieldControl' => [ |
271 | 271 | 'elementBrowser' => [ |
272 | - 'disabled' => true |
|
272 | + 'disabled' => TRUE |
|
273 | 273 | ] |
274 | 274 | ], |
275 | - 'hideDeleteIcon' => true |
|
275 | + 'hideDeleteIcon' => TRUE |
|
276 | 276 | ], |
277 | 277 | ], |
278 | 278 | 'volume' => [ |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | 'label' => 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_metadata.wrap', |
145 | 145 | 'config' => [ |
146 | 146 | 'behaviour' => [ |
147 | - 'allowLanguageSynchronization' => true |
|
147 | + 'allowLanguageSynchronization' => TRUE |
|
148 | 148 | ], |
149 | 149 | 'type' => 'text', |
150 | 150 | 'cols' => 48, |
@@ -152,8 +152,8 @@ discard block |
||
152 | 152 | 'wrap' => 'off', |
153 | 153 | 'eval' => 'trim', |
154 | 154 | 'default' => "key.wrap = <dt>|</dt>\nvalue.required = 1\nvalue.wrap = <dd>|</dd>", |
155 | - 'fixedFont' => true, |
|
156 | - 'enableTabulator' => true |
|
155 | + 'fixedFont' => TRUE, |
|
156 | + 'enableTabulator' => TRUE |
|
157 | 157 | ], |
158 | 158 | ], |
159 | 159 | 'index_tokenized' => [ |
@@ -157,14 +157,14 @@ |
||
157 | 157 | 'label' => 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_collections.description', |
158 | 158 | 'config' => [ |
159 | 159 | 'behaviour' => [ |
160 | - 'allowLanguageSynchronization' => true |
|
160 | + 'allowLanguageSynchronization' => TRUE |
|
161 | 161 | ], |
162 | 162 | 'type' => 'text', |
163 | 163 | 'cols' => 30, |
164 | 164 | 'rows' => 10, |
165 | 165 | 'wrap' => 'virtual', |
166 | 166 | 'default' => '', |
167 | - 'enableRichtext' => true, |
|
167 | + 'enableRichtext' => TRUE, |
|
168 | 168 | ], |
169 | 169 | ], |
170 | 170 | 'thumbnail' => [ |
@@ -58,6 +58,6 @@ |
||
58 | 58 | $cObj->data = $data; |
59 | 59 | $content .= $this->templateService->substituteMarkerArray($subpart, ['###TOOL###' => $cObj->cObjGetSingle($GLOBALS['TSFE']->tmpl->setup['plugin.'][$tool], $GLOBALS['TSFE']->tmpl->setup['plugin.'][$tool . '.'])]); |
60 | 60 | } |
61 | - return $this->pi_wrapInBaseClass($this->templateService->substituteSubpart($this->template, '###TOOLS###', $content, true)); |
|
61 | + return $this->pi_wrapInBaseClass($this->templateService->substituteSubpart($this->template, '###TOOLS###', $content, TRUE)); |
|
62 | 62 | } |
63 | 63 | } |
@@ -54,10 +54,10 @@ discard block |
||
54 | 54 | { |
55 | 55 | $this->init($conf); |
56 | 56 | // Turn cache on. |
57 | - $this->setCache(true); |
|
57 | + $this->setCache(TRUE); |
|
58 | 58 | // Load current document. |
59 | 59 | $this->loadDocument(); |
60 | - if ($this->doc === null) { |
|
60 | + if ($this->doc === NULL) { |
|
61 | 61 | // Quit without doing anything if required variables are not set. |
62 | 62 | return $content; |
63 | 63 | } else { |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | * |
157 | 157 | * @return string The metadata array ready for output |
158 | 158 | */ |
159 | - protected function printMetadata(array $metadataArray, $useOriginalIiifManifestMetadata = false) |
|
159 | + protected function printMetadata(array $metadataArray, $useOriginalIiifManifestMetadata = FALSE) |
|
160 | 160 | { |
161 | 161 | // Load template file. |
162 | 162 | $this->getTemplate(); |
@@ -298,7 +298,7 @@ discard block |
||
298 | 298 | if ($index_name == 'title') { |
299 | 299 | // Get title of parent document if needed. |
300 | 300 | if (empty($value) && $this->conf['getTitle'] && $this->doc->parentId) { |
301 | - $superiorTitle = Document::getTitle($this->doc->parentId, true); |
|
301 | + $superiorTitle = Document::getTitle($this->doc->parentId, TRUE); |
|
302 | 302 | if (!empty($superiorTitle)) { |
303 | 303 | $value = '[' . $superiorTitle . ']'; |
304 | 304 | } |
@@ -308,7 +308,7 @@ discard block |
||
308 | 308 | // Link title to pageview. |
309 | 309 | if ($this->conf['linkTitle'] && $metadata['_id']) { |
310 | 310 | $details = $this->doc->getLogicalStructure($metadata['_id']); |
311 | - $value = $this->pi_linkTP($value, [$this->prefixId => ['id' => $this->doc->uid, 'page' => (!empty($details['points']) ? intval($details['points']) : 1)]], true, $this->conf['targetPid']); |
|
311 | + $value = $this->pi_linkTP($value, [$this->prefixId => ['id' => $this->doc->uid, 'page' => (!empty($details['points']) ? intval($details['points']) : 1)]], TRUE, $this->conf['targetPid']); |
|
312 | 312 | } |
313 | 313 | } |
314 | 314 | } elseif ($index_name == 'owner' && !empty($value)) { |
@@ -354,6 +354,6 @@ discard block |
||
354 | 354 | $output .= $this->templateService->substituteMarkerArray($subpart['block'], $markerArray); |
355 | 355 | } |
356 | 356 | } |
357 | - return $this->templateService->substituteSubpart($this->template, '###BLOCK###', $output, true); |
|
357 | + return $this->templateService->substituteSubpart($this->template, '###BLOCK###', $output, TRUE); |
|
358 | 358 | } |
359 | 359 | } |
@@ -56,7 +56,7 @@ |
||
56 | 56 | if (!empty($fetchedHeaderString)) { |
57 | 57 | $fetchedHeader = explode("\n", $fetchedHeaderString); |
58 | 58 | foreach ($fetchedHeader as $headerline) { |
59 | - if (stripos($headerline, 'Last-Modified:') !== false) { |
|
59 | + if (stripos($headerline, 'Last-Modified:') !== FALSE) { |
|
60 | 60 | $lastModified = trim(substr($headerline, strpos($headerline, ':') + 1)); |
61 | 61 | break; |
62 | 62 | } |
@@ -38,12 +38,12 @@ |
||
38 | 38 | { |
39 | 39 | $this->init($conf); |
40 | 40 | // Disable caching for this plugin. |
41 | - $this->setCache(false); |
|
41 | + $this->setCache(FALSE); |
|
42 | 42 | // Load template file. |
43 | 43 | $this->getTemplate(); |
44 | 44 | // Load current document. |
45 | 45 | $this->loadDocument(); |
46 | - if ($this->doc === null) { |
|
46 | + if ($this->doc === NULL) { |
|
47 | 47 | // Document could not be loaded. |
48 | 48 | // Check: |
49 | 49 | // - if document location is valid URL |
@@ -53,7 +53,7 @@ |
||
53 | 53 | // Load current document. |
54 | 54 | $this->loadDocument(); |
55 | 55 | if ( |
56 | - $this->doc === null |
|
56 | + $this->doc === NULL |
|
57 | 57 | || $this->doc->numPages < 1 |
58 | 58 | || empty($this->conf['fileGrpFulltext']) |
59 | 59 | || empty($this->conf['solrcore']) |
@@ -47,7 +47,7 @@ |
||
47 | 47 | // Load current document. |
48 | 48 | $this->loadDocument(); |
49 | 49 | if ( |
50 | - $this->doc === null |
|
50 | + $this->doc === NULL |
|
51 | 51 | || $this->doc->numPages < 1 |
52 | 52 | || empty($this->conf['fileGrpDownload']) |
53 | 53 | ) { |