We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | * @var array |
| 67 | 67 | * @access protected |
| 68 | 68 | */ |
| 69 | - protected $params = array (); |
|
| 69 | + protected $params = array(); |
|
| 70 | 70 | |
| 71 | 71 | /** |
| 72 | 72 | * Is the search instantiated successfully? |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | * @var array(tx_dlf_solr) |
| 83 | 83 | * @access protected |
| 84 | 84 | */ |
| 85 | - protected static $registry = array (); |
|
| 85 | + protected static $registry = array(); |
|
| 86 | 86 | |
| 87 | 87 | /** |
| 88 | 88 | * This holds the Solr service object |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery( |
| 145 | 145 | 'tx_dlf_metadata.index_name,tx_dlf_metadata.index_tokenized,tx_dlf_metadata.index_stored', |
| 146 | 146 | 'tx_dlf_metadata', |
| 147 | - 'tx_dlf_metadata.index_indexed=1 AND tx_dlf_metadata.pid=' . intval($pid) . ' AND (tx_dlf_metadata.sys_language_uid IN (-1,0) OR tx_dlf_metadata.l18n_parent=0)' . tx_dlf_helper::whereClause('tx_dlf_metadata'), |
|
| 147 | + 'tx_dlf_metadata.index_indexed=1 AND tx_dlf_metadata.pid='.intval($pid).' AND (tx_dlf_metadata.sys_language_uid IN (-1,0) OR tx_dlf_metadata.l18n_parent=0)'.tx_dlf_helper::whereClause('tx_dlf_metadata'), |
|
| 148 | 148 | '', |
| 149 | 149 | '', |
| 150 | 150 | '' |
@@ -262,7 +262,7 @@ discard block |
||
| 262 | 262 | */ |
| 263 | 263 | public static function getSolrConnectionInfo($core = '') { |
| 264 | 264 | |
| 265 | - $solrInfo = array (); |
|
| 265 | + $solrInfo = array(); |
|
| 266 | 266 | |
| 267 | 267 | // Extract extension configuration. |
| 268 | 268 | $conf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][self::$extKey]); |
@@ -348,9 +348,9 @@ discard block |
||
| 348 | 348 | |
| 349 | 349 | $this->numberOfHits = count($results->response->docs); |
| 350 | 350 | |
| 351 | - $toplevel = array (); |
|
| 351 | + $toplevel = array(); |
|
| 352 | 352 | |
| 353 | - $checks = array (); |
|
| 353 | + $checks = array(); |
|
| 354 | 354 | |
| 355 | 355 | // Get metadata configuration. |
| 356 | 356 | if ($this->numberOfHits > 0) { |
@@ -364,7 +364,7 @@ discard block |
||
| 364 | 364 | '' |
| 365 | 365 | ); |
| 366 | 366 | |
| 367 | - $sorting = array (); |
|
| 367 | + $sorting = array(); |
|
| 368 | 368 | |
| 369 | 369 | while ($resArray = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($result)) { |
| 370 | 370 | |
@@ -384,7 +384,7 @@ discard block |
||
| 384 | 384 | if ($doc->toplevel == 1) { |
| 385 | 385 | |
| 386 | 386 | // Prepare document's metadata for sorting. |
| 387 | - $docSorting = array (); |
|
| 387 | + $docSorting = array(); |
|
| 388 | 388 | |
| 389 | 389 | foreach ($sorting as $index_name => $solr_name) { |
| 390 | 390 | |
@@ -403,16 +403,16 @@ discard block |
||
| 403 | 403 | |
| 404 | 404 | } |
| 405 | 405 | |
| 406 | - $toplevel[$doc->uid] = array ( |
|
| 406 | + $toplevel[$doc->uid] = array( |
|
| 407 | 407 | 'u' => $doc->uid, |
| 408 | 408 | 'h' => '', |
| 409 | 409 | 's' => $docSorting, |
| 410 | - 'p' => (!empty($toplevel[$doc->uid]['p']) ? $toplevel[$doc->uid]['p'] : array ()) |
|
| 410 | + 'p' => (!empty($toplevel[$doc->uid]['p']) ? $toplevel[$doc->uid]['p'] : array()) |
|
| 411 | 411 | ); |
| 412 | 412 | |
| 413 | 413 | } else { |
| 414 | 414 | |
| 415 | - $toplevel[$doc->uid]['p'][] = array ( |
|
| 415 | + $toplevel[$doc->uid]['p'][] = array( |
|
| 416 | 416 | 'u' => $doc->id, |
| 417 | 417 | 'h' => (!empty($results->highlighting->{$doc->id}->fulltext) ? $results->highlighting->{$doc->id}->fulltext[0] : '') |
| 418 | 418 | ); |
@@ -484,7 +484,7 @@ discard block |
||
| 484 | 484 | |
| 485 | 485 | } |
| 486 | 486 | |
| 487 | - $toplevel[$check] = array ( |
|
| 487 | + $toplevel[$check] = array( |
|
| 488 | 488 | 'u' => $resArray['uid'], |
| 489 | 489 | 'h' => '', |
| 490 | 490 | 's' => $sorting, |
@@ -510,10 +510,10 @@ discard block |
||
| 510 | 510 | $list->add(array_values($toplevel)); |
| 511 | 511 | |
| 512 | 512 | // Set metadata for search. |
| 513 | - $list->metadata = array ( |
|
| 513 | + $list->metadata = array( |
|
| 514 | 514 | 'label' => '', |
| 515 | 515 | 'description' => '', |
| 516 | - 'options' => array ( |
|
| 516 | + 'options' => array( |
|
| 517 | 517 | 'source' => 'search', |
| 518 | 518 | 'engine' => 'solr', |
| 519 | 519 | 'select' => $query, |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | * @var array |
| 35 | 35 | * @access protected |
| 36 | 36 | */ |
| 37 | - protected static $locallang = array (); |
|
| 37 | + protected static $locallang = array(); |
|
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | 40 | * Adds a message to the message queue. |
@@ -349,7 +349,7 @@ discard block |
||
| 349 | 349 | |
| 350 | 350 | $hash = $salt.substr(sha1($salt.$string), -10); |
| 351 | 351 | |
| 352 | - return array ('encrypted' => $encrypted, 'hash' => $hash); |
|
| 352 | + return array('encrypted' => $encrypted, 'hash' => $hash); |
|
| 353 | 353 | |
| 354 | 354 | } |
| 355 | 355 | |
@@ -438,7 +438,7 @@ discard block |
||
| 438 | 438 | */ |
| 439 | 439 | public static function getHookObjects($scriptRelPath) { |
| 440 | 440 | |
| 441 | - $hookObjects = array (); |
|
| 441 | + $hookObjects = array(); |
|
| 442 | 442 | |
| 443 | 443 | if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][self::$extKey.'/'.$scriptRelPath]['hookClass'])) { |
| 444 | 444 | |
@@ -475,7 +475,7 @@ discard block |
||
| 475 | 475 | // Sanitize input. |
| 476 | 476 | $uid = max(intval($uid), 0); |
| 477 | 477 | |
| 478 | - if (!$uid || !in_array($table, array ('tx_dlf_collections', 'tx_dlf_libraries', 'tx_dlf_metadata', 'tx_dlf_structures', 'tx_dlf_solrcores'))) { |
|
| 478 | + if (!$uid || !in_array($table, array('tx_dlf_collections', 'tx_dlf_libraries', 'tx_dlf_metadata', 'tx_dlf_structures', 'tx_dlf_solrcores'))) { |
|
| 479 | 479 | |
| 480 | 480 | if (TYPO3_DLOG) { |
| 481 | 481 | |
@@ -546,7 +546,7 @@ discard block |
||
| 546 | 546 | |
| 547 | 547 | $_pid = $pid; |
| 548 | 548 | |
| 549 | - if (!$index_name || !in_array($table, array ('tx_dlf_collections', 'tx_dlf_libraries', 'tx_dlf_metadata', 'tx_dlf_structures', 'tx_dlf_solrcores'))) { |
|
| 549 | + if (!$index_name || !in_array($table, array('tx_dlf_collections', 'tx_dlf_libraries', 'tx_dlf_metadata', 'tx_dlf_structures', 'tx_dlf_solrcores'))) { |
|
| 550 | 550 | |
| 551 | 551 | if (TYPO3_DLOG) { |
| 552 | 552 | |
@@ -757,7 +757,7 @@ discard block |
||
| 757 | 757 | */ |
| 758 | 758 | public static function getURN($base, $id) { |
| 759 | 759 | |
| 760 | - $concordance = array ( |
|
| 760 | + $concordance = array( |
|
| 761 | 761 | '0' => 1, |
| 762 | 762 | '1' => 2, |
| 763 | 763 | '2' => 3, |
@@ -913,7 +913,7 @@ discard block |
||
| 913 | 913 | * |
| 914 | 914 | * @return array Array of substituted "NEW..." identifiers and their actual UIDs. |
| 915 | 915 | */ |
| 916 | - public static function processDB(array $data = array (), array $cmd = array (), $reverseOrder = FALSE, $be_user = FALSE) { |
|
| 916 | + public static function processDB(array $data = array(), array $cmd = array(), $reverseOrder = FALSE, $be_user = FALSE) { |
|
| 917 | 917 | |
| 918 | 918 | // Instantiate TYPO3 core engine. |
| 919 | 919 | $tce = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\DataHandling\\DataHandler'); |
@@ -971,7 +971,7 @@ discard block |
||
| 971 | 971 | * |
| 972 | 972 | * @return array Array of substituted "NEW..." identifiers and their actual UIDs. |
| 973 | 973 | */ |
| 974 | - public static function processDBasAdmin(array $data = array (), array $cmd = array (), $reverseOrder = FALSE) { |
|
| 974 | + public static function processDBasAdmin(array $data = array(), array $cmd = array(), $reverseOrder = FALSE) { |
|
| 975 | 975 | |
| 976 | 976 | if (TYPO3_MODE === 'BE' && $GLOBALS['BE_USER']->isAdmin()) { |
| 977 | 977 | |
@@ -981,11 +981,11 @@ discard block |
||
| 981 | 981 | |
| 982 | 982 | if (TYPO3_DLOG) { |
| 983 | 983 | |
| 984 | - \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_helper->processDBasAdmin([data->data], [data->cmd], ['.($reverseOrder ? 'TRUE' : 'FALSE').'])] Current backend user has no admin privileges', self::$extKey, SYSLOG_SEVERITY_ERROR, array ('data' => $data, 'cmd' => $cmd)); |
|
| 984 | + \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_helper->processDBasAdmin([data->data], [data->cmd], ['.($reverseOrder ? 'TRUE' : 'FALSE').'])] Current backend user has no admin privileges', self::$extKey, SYSLOG_SEVERITY_ERROR, array('data' => $data, 'cmd' => $cmd)); |
|
| 985 | 985 | |
| 986 | 986 | } |
| 987 | 987 | |
| 988 | - return array (); |
|
| 988 | + return array(); |
|
| 989 | 989 | |
| 990 | 990 | } |
| 991 | 991 | |
@@ -1028,7 +1028,7 @@ discard block |
||
| 1028 | 1028 | |
| 1029 | 1029 | if ($flashMessage->getTitle() !== '') { |
| 1030 | 1030 | |
| 1031 | - $messageContent = sprintf('<h4>%s</h4>', htmlspecialchars($flashMessage->getTitle())) . $messageContent; |
|
| 1031 | + $messageContent = sprintf('<h4>%s</h4>', htmlspecialchars($flashMessage->getTitle())).$messageContent; |
|
| 1032 | 1032 | |
| 1033 | 1033 | } |
| 1034 | 1034 | |
@@ -1124,7 +1124,7 @@ discard block |
||
| 1124 | 1124 | $_pid = $pid; |
| 1125 | 1125 | |
| 1126 | 1126 | // Load labels into static variable for future use. |
| 1127 | - static $labels = array (); |
|
| 1127 | + static $labels = array(); |
|
| 1128 | 1128 | |
| 1129 | 1129 | // Sanitize input. |
| 1130 | 1130 | $pid = max(intval($pid), 0); |
@@ -1191,7 +1191,7 @@ discard block |
||
| 1191 | 1191 | if (empty($labels[$table][$pid][$GLOBALS['TSFE']->sys_language_content][$index_name])) { |
| 1192 | 1192 | |
| 1193 | 1193 | // Check if this table is allowed for translation. |
| 1194 | - if (in_array($table, array ('tx_dlf_collections', 'tx_dlf_libraries', 'tx_dlf_metadata', 'tx_dlf_structures'))) { |
|
| 1194 | + if (in_array($table, array('tx_dlf_collections', 'tx_dlf_libraries', 'tx_dlf_metadata', 'tx_dlf_structures'))) { |
|
| 1195 | 1195 | |
| 1196 | 1196 | $additionalWhere = ' AND sys_language_uid IN (-1,0)'; |
| 1197 | 1197 | |
@@ -1218,7 +1218,7 @@ discard block |
||
| 1218 | 1218 | // Overlay localized labels if available. |
| 1219 | 1219 | if ($GLOBALS['TSFE']->sys_language_content > 0) { |
| 1220 | 1220 | |
| 1221 | - $resArray = $GLOBALS['TSFE']->sys_page->getRecordOverlay($table, $resArray,$GLOBALS['TSFE']->sys_language_content, $GLOBALS['TSFE']->sys_language_contentOL); |
|
| 1221 | + $resArray = $GLOBALS['TSFE']->sys_page->getRecordOverlay($table, $resArray, $GLOBALS['TSFE']->sys_language_content, $GLOBALS['TSFE']->sys_language_contentOL); |
|
| 1222 | 1222 | |
| 1223 | 1223 | } |
| 1224 | 1224 | |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | * @var array() |
| 36 | 36 | * @access protected |
| 37 | 37 | */ |
| 38 | - protected $elements = array (); |
|
| 38 | + protected $elements = array(); |
|
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | 41 | * This holds the list's metadata |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | * @var array |
| 44 | 44 | * @access protected |
| 45 | 45 | */ |
| 46 | - protected $metadata = array (); |
|
| 46 | + protected $metadata = array(); |
|
| 47 | 47 | |
| 48 | 48 | /** |
| 49 | 49 | * This holds the current list position |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | * @var array() |
| 61 | 61 | * @access protected |
| 62 | 62 | */ |
| 63 | - protected $records = array (); |
|
| 63 | + protected $records = array(); |
|
| 64 | 64 | |
| 65 | 65 | /** |
| 66 | 66 | * Instance of Apache_Solr_Service class |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | * @var array |
| 77 | 77 | * @access protected |
| 78 | 78 | */ |
| 79 | - protected $solrConfig = array (); |
|
| 79 | + protected $solrConfig = array(); |
|
| 80 | 80 | |
| 81 | 81 | /** |
| 82 | 82 | * This adds an array of elements at the given position to the list |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | */ |
| 156 | 156 | protected function getRecord($element) { |
| 157 | 157 | |
| 158 | - if (is_array($element) && array_keys($element) == array ('u', 'h', 's', 'p')) { |
|
| 158 | + if (is_array($element) && array_keys($element) == array('u', 'h', 's', 'p')) { |
|
| 159 | 159 | |
| 160 | 160 | // Return already processed record if possible. |
| 161 | 161 | if (!empty($this->records[$element['u']])) { |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | |
| 165 | 165 | } |
| 166 | 166 | |
| 167 | - $record = array ( |
|
| 167 | + $record = array( |
|
| 168 | 168 | 'uid' => $element['u'], |
| 169 | 169 | 'page' => 1, |
| 170 | 170 | 'preview' => '', |
@@ -225,7 +225,7 @@ discard block |
||
| 225 | 225 | |
| 226 | 226 | } elseif (($key = tx_dlf_helper::array_search_recursive($resArray['uid'], $record['subparts'], TRUE)) !== FALSE) { |
| 227 | 227 | |
| 228 | - $record['subparts'][$key] = array ( |
|
| 228 | + $record['subparts'][$key] = array( |
|
| 229 | 229 | 'uid' => $resArray['uid'], |
| 230 | 230 | 'page' => 1, |
| 231 | 231 | 'preview' => (!empty($record['subparts'][$key]['h']) ? $record['subparts'][$key]['h'] : ''), |
@@ -248,13 +248,13 @@ discard block |
||
| 248 | 248 | foreach ($result->response->docs as $resArray) { |
| 249 | 249 | |
| 250 | 250 | // Prepare document's metadata. |
| 251 | - $metadata = array (); |
|
| 251 | + $metadata = array(); |
|
| 252 | 252 | |
| 253 | 253 | foreach ($this->solrConfig as $index_name => $solr_name) { |
| 254 | 254 | |
| 255 | 255 | if (!empty($resArray->$solr_name)) { |
| 256 | 256 | |
| 257 | - $metadata[$index_name] = (is_array($resArray->$solr_name) ? $resArray->$solr_name : array ($resArray->$solr_name)); |
|
| 257 | + $metadata[$index_name] = (is_array($resArray->$solr_name) ? $resArray->$solr_name : array($resArray->$solr_name)); |
|
| 258 | 258 | |
| 259 | 259 | } |
| 260 | 260 | |
@@ -269,7 +269,7 @@ discard block |
||
| 269 | 269 | |
| 270 | 270 | } elseif (($key = tx_dlf_helper::array_search_recursive($resArray->id, $record['subparts'], TRUE)) !== FALSE) { |
| 271 | 271 | |
| 272 | - $record['subparts'][$key] = array ( |
|
| 272 | + $record['subparts'][$key] = array( |
|
| 273 | 273 | 'uid' => $resArray->uid, |
| 274 | 274 | 'page' => $resArray->page, |
| 275 | 275 | 'preview' => (!empty($record['subparts'][$key]['h']) ? $record['subparts'][$key]['h'] : ''), |
@@ -369,7 +369,7 @@ discard block |
||
| 369 | 369 | |
| 370 | 370 | $element = $this->remove($position); |
| 371 | 371 | |
| 372 | - $this->add(array ($element), $position + $steps); |
|
| 372 | + $this->add(array($element), $position + $steps); |
|
| 373 | 373 | |
| 374 | 374 | } |
| 375 | 375 | |
@@ -538,11 +538,11 @@ discard block |
||
| 538 | 538 | */ |
| 539 | 539 | public function reset() { |
| 540 | 540 | |
| 541 | - $this->elements = array (); |
|
| 541 | + $this->elements = array(); |
|
| 542 | 542 | |
| 543 | - $this->records = array (); |
|
| 543 | + $this->records = array(); |
|
| 544 | 544 | |
| 545 | - $this->metadata = array (); |
|
| 545 | + $this->metadata = array(); |
|
| 546 | 546 | |
| 547 | 547 | $this->count = 0; |
| 548 | 548 | |
@@ -584,7 +584,7 @@ discard block |
||
| 584 | 584 | |
| 585 | 585 | } else { |
| 586 | 586 | |
| 587 | - tx_dlf_helper::saveToSession(array ($this->elements, $this->metadata), get_class($this)); |
|
| 587 | + tx_dlf_helper::saveToSession(array($this->elements, $this->metadata), get_class($this)); |
|
| 588 | 588 | |
| 589 | 589 | } |
| 590 | 590 | |
@@ -648,9 +648,9 @@ discard block |
||
| 648 | 648 | */ |
| 649 | 649 | public function sort($by, $asc = TRUE) { |
| 650 | 650 | |
| 651 | - $newOrder = array (); |
|
| 651 | + $newOrder = array(); |
|
| 652 | 652 | |
| 653 | - $nonSortable = array (); |
|
| 653 | + $nonSortable = array(); |
|
| 654 | 654 | |
| 655 | 655 | foreach ($this->elements as $num => $element) { |
| 656 | 656 | |
@@ -755,7 +755,7 @@ discard block |
||
| 755 | 755 | * |
| 756 | 756 | * @return void |
| 757 | 757 | */ |
| 758 | - protected function _setMetadata(array $metadata = array ()) { |
|
| 758 | + protected function _setMetadata(array $metadata = array()) { |
|
| 759 | 759 | |
| 760 | 760 | $this->metadata = $metadata; |
| 761 | 761 | |
@@ -771,7 +771,7 @@ discard block |
||
| 771 | 771 | * |
| 772 | 772 | * @return void |
| 773 | 773 | */ |
| 774 | - public function __construct(array $elements = array (), array $metadata = array ()) { |
|
| 774 | + public function __construct(array $elements = array(), array $metadata = array()) { |
|
| 775 | 775 | |
| 776 | 776 | if (empty($elements) && empty($metadata)) { |
| 777 | 777 | |
@@ -890,7 +890,7 @@ discard block |
||
| 890 | 890 | */ |
| 891 | 891 | public function __sleep() { |
| 892 | 892 | |
| 893 | - return array ('elements', 'metadata'); |
|
| 893 | + return array('elements', 'metadata'); |
|
| 894 | 894 | |
| 895 | 895 | } |
| 896 | 896 | |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | protected function init(array $conf) { |
| 61 | 61 | |
| 62 | 62 | // Read FlexForm configuration. |
| 63 | - $flexFormConf = array (); |
|
| 63 | + $flexFormConf = array(); |
|
| 64 | 64 | |
| 65 | 65 | $this->cObj->readFlexformIntoConf($this->cObj->data['pi_flexform'], $flexFormConf); |
| 66 | 66 | |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | $pid = (!empty($this->conf['excludeOther']) ? intval($this->conf['pages']) : 0); |
| 133 | 133 | |
| 134 | 134 | // Get instance of tx_dlf_document. |
| 135 | - $this->doc =& tx_dlf_document::getInstance($this->piVars['id'], $pid); |
|
| 135 | + $this->doc = & tx_dlf_document::getInstance($this->piVars['id'], $pid); |
|
| 136 | 136 | |
| 137 | 137 | if (!$this->doc->ready) { |
| 138 | 138 | |
@@ -228,7 +228,7 @@ discard block |
||
| 228 | 228 | |
| 229 | 229 | foreach ($this->conf['_DEFAULT_PI_VARS.'] as $GPkey => $GPval) { |
| 230 | 230 | |
| 231 | - if (strpos($GPkey,'.')) { |
|
| 231 | + if (strpos($GPkey, '.')) { |
|
| 232 | 232 | |
| 233 | 233 | $GPkey = substr($GPkey, 0, -1); |
| 234 | 234 | |
@@ -34,14 +34,14 @@ discard block |
||
| 34 | 34 | * @var array |
| 35 | 35 | * @access protected |
| 36 | 36 | */ |
| 37 | - protected static $fields = array ( |
|
| 38 | - 'autocomplete' => array (), |
|
| 39 | - 'facets' => array (), |
|
| 40 | - 'sortables' => array (), |
|
| 41 | - 'indexed' => array (), |
|
| 42 | - 'stored' => array (), |
|
| 43 | - 'tokenized' => array (), |
|
| 44 | - 'fieldboost' => array () |
|
| 37 | + protected static $fields = array( |
|
| 38 | + 'autocomplete' => array(), |
|
| 39 | + 'facets' => array(), |
|
| 40 | + 'sortables' => array(), |
|
| 41 | + 'indexed' => array(), |
|
| 42 | + 'stored' => array(), |
|
| 43 | + 'tokenized' => array(), |
|
| 44 | + 'fieldboost' => array() |
|
| 45 | 45 | ); |
| 46 | 46 | |
| 47 | 47 | /** |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | * @var array |
| 60 | 60 | * @access protected |
| 61 | 61 | */ |
| 62 | - protected static $processedDocs = array (); |
|
| 62 | + protected static $processedDocs = array(); |
|
| 63 | 63 | |
| 64 | 64 | /** |
| 65 | 65 | * Instance of Apache_Solr_Service class |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | * @var array |
| 77 | 77 | * @access protected |
| 78 | 78 | */ |
| 79 | - protected static $toplevel = array (); |
|
| 79 | + protected static $toplevel = array(); |
|
| 80 | 80 | |
| 81 | 81 | /** |
| 82 | 82 | * Insert given document into Solr index |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | * |
| 89 | 89 | * @return integer 0 on success or 1 on failure |
| 90 | 90 | */ |
| 91 | - public static function add(tx_dlf_document &$doc, $core = 0) { |
|
| 91 | + public static function add(tx_dlf_document&$doc, $core = 0) { |
|
| 92 | 92 | |
| 93 | 93 | if (in_array($doc->uid, self::$processedDocs)) { |
| 94 | 94 | |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | // Handle multi-volume documents. |
| 102 | 102 | if ($doc->parentId) { |
| 103 | 103 | |
| 104 | - $parent =& tx_dlf_document::getInstance($doc->parentId, 0, TRUE); |
|
| 104 | + $parent = & tx_dlf_document::getInstance($doc->parentId, 0, TRUE); |
|
| 105 | 105 | |
| 106 | 106 | if ($parent->ready) { |
| 107 | 107 | |
@@ -535,7 +535,7 @@ discard block |
||
| 535 | 535 | * |
| 536 | 536 | * @return integer 0 on success or 1 on failure |
| 537 | 537 | */ |
| 538 | - protected static function processLogical(tx_dlf_document &$doc, array $logicalUnit) { |
|
| 538 | + protected static function processLogical(tx_dlf_document&$doc, array $logicalUnit) { |
|
| 539 | 539 | |
| 540 | 540 | $errors = 0; |
| 541 | 541 | |
@@ -591,7 +591,7 @@ discard block |
||
| 591 | 591 | |
| 592 | 592 | $solrDoc->setField('volume', $metadata['volume'][0], self::$fields['fieldboost']['volume']); |
| 593 | 593 | |
| 594 | - $autocomplete = array (); |
|
| 594 | + $autocomplete = array(); |
|
| 595 | 595 | |
| 596 | 596 | foreach ($metadata as $index_name => $data) { |
| 597 | 597 | |
@@ -700,7 +700,7 @@ discard block |
||
| 700 | 700 | * |
| 701 | 701 | * @return integer 0 on success or 1 on failure |
| 702 | 702 | */ |
| 703 | - protected static function processPhysical(tx_dlf_document &$doc, $page, array $physicalUnit) { |
|
| 703 | + protected static function processPhysical(tx_dlf_document&$doc, $page, array $physicalUnit) { |
|
| 704 | 704 | |
| 705 | 705 | $errors = 0; |
| 706 | 706 | |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | |
| 58 | 58 | } elseif (($nameParts = $authors[$i]->xpath('./mods:namePart'))) { |
| 59 | 59 | |
| 60 | - $name = array (); |
|
| 60 | + $name = array(); |
|
| 61 | 61 | |
| 62 | 62 | $k = 4; |
| 63 | 63 | |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * LICENSE.txt file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -if (!defined ('TYPO3_MODE')) die ('Access denied.'); |
|
| 12 | +if (!defined('TYPO3_MODE')) die ('Access denied.'); |
|
| 13 | 13 | |
| 14 | 14 | // Register plugins. |
| 15 | 15 | \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'plugins/audioplayer/class.tx_dlf_audioplayer.php', '_audioplayer', 'list_type', TRUE); |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/common/class.tx_dlf_document.php']['hookClass'][] = 'EXT:'.$_EXTKEY.'/hooks/class.tx_dlf_hacks.php:tx_dlf_hacks'; |
| 66 | 66 | |
| 67 | 67 | // Register command line scripts. |
| 68 | -$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['cliKeys'][$_EXTKEY] = array ('EXT:'.$_EXTKEY.'/cli/class.tx_dlf_cli.php', '_CLI_dlf'); |
|
| 68 | +$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['cliKeys'][$_EXTKEY] = array('EXT:'.$_EXTKEY.'/cli/class.tx_dlf_cli.php', '_CLI_dlf'); |
|
| 69 | 69 | |
| 70 | 70 | // Register AJAX eID handlers. |
| 71 | 71 | $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_search_suggest'] = 'EXT:'.$_EXTKEY.'/plugins/search/class.tx_dlf_search_suggest.php'; |
@@ -9,7 +9,9 @@ |
||
| 9 | 9 | * LICENSE.txt file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -if (!defined ('TYPO3_MODE')) die ('Access denied.'); |
|
| 12 | +if (!defined ('TYPO3_MODE')) { |
|
| 13 | + die ('Access denied.'); |
|
| 14 | +} |
|
| 13 | 15 | |
| 14 | 16 | // Register plugins. |
| 15 | 17 | \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'plugins/audioplayer/class.tx_dlf_audioplayer.php', '_audioplayer', 'list_type', TRUE); |
@@ -11,9 +11,9 @@ discard block |
||
| 11 | 11 | |
| 12 | 12 | // Define metadata elements. |
| 13 | 13 | // @see http://dfg-viewer.de/en/profile-of-the-metadata/ |
| 14 | -$metadata = array ( |
|
| 15 | - 'type' => array ( |
|
| 16 | - 'format' => array (), |
|
| 14 | +$metadata = array( |
|
| 15 | + 'type' => array( |
|
| 16 | + 'format' => array(), |
|
| 17 | 17 | 'default_value' => '', |
| 18 | 18 | 'wrap' => '', |
| 19 | 19 | 'index_tokenized' => 0, |
@@ -25,14 +25,14 @@ discard block |
||
| 25 | 25 | 'is_listed' => 1, |
| 26 | 26 | 'index_autocomplete' => 0, |
| 27 | 27 | ), |
| 28 | - 'title' => array ( |
|
| 29 | - 'format' => array ( |
|
| 30 | - array ( |
|
| 28 | + 'title' => array( |
|
| 29 | + 'format' => array( |
|
| 30 | + array( |
|
| 31 | 31 | 'encoded' => 1, |
| 32 | 32 | 'xpath' => 'concat(./mods:titleInfo/mods:nonSort," ",./mods:titleInfo/mods:title)', |
| 33 | 33 | 'xpath_sorting' => './mods:titleInfo/mods:title', |
| 34 | 34 | ), |
| 35 | - array ( |
|
| 35 | + array( |
|
| 36 | 36 | 'encoded' => 2, |
| 37 | 37 | 'xpath' => './teihdr:fileDesc/teihdr:sourceDesc/teihdr:msDesc/teihdr:head/teihdr:note[@type="caption"]', |
| 38 | 38 | 'xpath_sorting' => '', |
@@ -49,9 +49,9 @@ discard block |
||
| 49 | 49 | 'is_listed' => 1, |
| 50 | 50 | 'index_autocomplete' => 1, |
| 51 | 51 | ), |
| 52 | - 'volume' => array ( |
|
| 53 | - 'format' => array ( |
|
| 54 | - array ( |
|
| 52 | + 'volume' => array( |
|
| 53 | + 'format' => array( |
|
| 54 | + array( |
|
| 55 | 55 | 'encoded' => 1, |
| 56 | 56 | 'xpath' => './mods:part/mods:detail/mods:number', |
| 57 | 57 | 'xpath_sorting' => './mods:part[@type="host"]/@order', |
@@ -68,9 +68,9 @@ discard block |
||
| 68 | 68 | 'is_listed' => 1, |
| 69 | 69 | 'index_autocomplete' => 0, |
| 70 | 70 | ), |
| 71 | - 'author' => array ( |
|
| 72 | - 'format' => array ( |
|
| 73 | - array ( |
|
| 71 | + 'author' => array( |
|
| 72 | + 'format' => array( |
|
| 73 | + array( |
|
| 74 | 74 | 'encoded' => 2, |
| 75 | 75 | 'xpath' => './teihdr:fileDesc/teihdr:sourceDesc/teihdr:msDesc/teihdr:head/teihdr:name', |
| 76 | 76 | 'xpath_sorting' => '', |
@@ -87,9 +87,9 @@ discard block |
||
| 87 | 87 | 'is_listed' => 1, |
| 88 | 88 | 'index_autocomplete' => 1, |
| 89 | 89 | ), |
| 90 | - 'place' => array ( |
|
| 91 | - 'format' => array ( |
|
| 92 | - array ( |
|
| 90 | + 'place' => array( |
|
| 91 | + 'format' => array( |
|
| 92 | + array( |
|
| 93 | 93 | 'encoded' => 2, |
| 94 | 94 | 'xpath' => './teihdr:fileDesc/teihdr:sourceDesc/teihdr:msDesc/teihdr:head/teihdr:origPlace', |
| 95 | 95 | 'xpath_sorting' => '', |
@@ -106,9 +106,9 @@ discard block |
||
| 106 | 106 | 'is_listed' => 1, |
| 107 | 107 | 'index_autocomplete' => 0, |
| 108 | 108 | ), |
| 109 | - 'year' => array ( |
|
| 110 | - 'format' => array ( |
|
| 111 | - array ( |
|
| 109 | + 'year' => array( |
|
| 110 | + 'format' => array( |
|
| 111 | + array( |
|
| 112 | 112 | 'encoded' => 2, |
| 113 | 113 | 'xpath' => './teihdr:fileDesc/teihdr:sourceDesc/teihdr:msDesc/teihdr:head/teihdr:origDate', |
| 114 | 114 | 'xpath_sorting' => './teihdr:fileDesc/teihdr:sourceDesc/teihdr:msDesc/teihdr:head/teihdr:origDate/@when', |
@@ -125,9 +125,9 @@ discard block |
||
| 125 | 125 | 'is_listed' => 1, |
| 126 | 126 | 'index_autocomplete' => 0, |
| 127 | 127 | ), |
| 128 | - 'language' => array ( |
|
| 129 | - 'format' => array ( |
|
| 130 | - array ( |
|
| 128 | + 'language' => array( |
|
| 129 | + 'format' => array( |
|
| 130 | + array( |
|
| 131 | 131 | 'encoded' => 1, |
| 132 | 132 | 'xpath' => './mods:language/mods:languageTerm', |
| 133 | 133 | 'xpath_sorting' => '', |
@@ -144,14 +144,14 @@ discard block |
||
| 144 | 144 | 'is_listed' => 0, |
| 145 | 145 | 'index_autocomplete' => 0, |
| 146 | 146 | ), |
| 147 | - 'collection' => array ( |
|
| 148 | - 'format' => array ( |
|
| 149 | - array ( |
|
| 147 | + 'collection' => array( |
|
| 148 | + 'format' => array( |
|
| 149 | + array( |
|
| 150 | 150 | 'encoded' => 1, |
| 151 | 151 | 'xpath' => './mods:classification', |
| 152 | 152 | 'xpath_sorting' => '', |
| 153 | 153 | ), |
| 154 | - array ( |
|
| 154 | + array( |
|
| 155 | 155 | 'encoded' => 2, |
| 156 | 156 | 'xpath' => './teihdr:fileDesc/teihdr:sourceDesc/teihdr:msDesc/teihdr:msIdentifier/teihdr:collection', |
| 157 | 157 | 'xpath_sorting' => '', |
@@ -168,14 +168,14 @@ discard block |
||
| 168 | 168 | 'is_listed' => 0, |
| 169 | 169 | 'index_autocomplete' => 0, |
| 170 | 170 | ), |
| 171 | - 'owner' => array ( |
|
| 172 | - 'format' => array ( |
|
| 173 | - array ( |
|
| 171 | + 'owner' => array( |
|
| 172 | + 'format' => array( |
|
| 173 | + array( |
|
| 174 | 174 | 'encoded' => 1, |
| 175 | 175 | 'xpath' => './mods:name[./mods:role/mods:roleTerm="own"]/mods:displayForm', |
| 176 | 176 | 'xpath_sorting' => '', |
| 177 | 177 | ), |
| 178 | - array ( |
|
| 178 | + array( |
|
| 179 | 179 | 'encoded' => 2, |
| 180 | 180 | 'xpath' => './teihdr:fileDesc/teihdr:publicationStmt/teihdr:publisher', |
| 181 | 181 | 'xpath_sorting' => '', |
@@ -192,14 +192,14 @@ discard block |
||
| 192 | 192 | 'is_listed' => 0, |
| 193 | 193 | 'index_autocomplete' => 0, |
| 194 | 194 | ), |
| 195 | - 'purl' => array ( |
|
| 196 | - 'format' => array ( |
|
| 197 | - array ( |
|
| 195 | + 'purl' => array( |
|
| 196 | + 'format' => array( |
|
| 197 | + array( |
|
| 198 | 198 | 'encoded' => 1, |
| 199 | 199 | 'xpath' => './mods:identifier[@type="purl"]', |
| 200 | 200 | 'xpath_sorting' => '', |
| 201 | 201 | ), |
| 202 | - array ( |
|
| 202 | + array( |
|
| 203 | 203 | 'encoded' => 2, |
| 204 | 204 | 'xpath' => './teihdr:fileDesc/teihdr:publicationStmt/teihdr:idno[@type="purl"]', |
| 205 | 205 | 'xpath_sorting' => '', |
@@ -216,14 +216,14 @@ discard block |
||
| 216 | 216 | 'is_listed' => 0, |
| 217 | 217 | 'index_autocomplete' => 0, |
| 218 | 218 | ), |
| 219 | - 'urn' => array ( |
|
| 220 | - 'format' => array ( |
|
| 221 | - array ( |
|
| 219 | + 'urn' => array( |
|
| 220 | + 'format' => array( |
|
| 221 | + array( |
|
| 222 | 222 | 'encoded' => 1, |
| 223 | 223 | 'xpath' => './mods:identifier[@type="urn"]', |
| 224 | 224 | 'xpath_sorting' => '', |
| 225 | 225 | ), |
| 226 | - array ( |
|
| 226 | + array( |
|
| 227 | 227 | 'encoded' => 2, |
| 228 | 228 | 'xpath' => './teihdr:fileDesc/teihdr:publicationStmt/teihdr:idno[@type="urn"]', |
| 229 | 229 | 'xpath_sorting' => '', |
@@ -240,14 +240,14 @@ discard block |
||
| 240 | 240 | 'is_listed' => 0, |
| 241 | 241 | 'index_autocomplete' => 0, |
| 242 | 242 | ), |
| 243 | - 'opac_id' => array ( |
|
| 244 | - 'format' => array ( |
|
| 245 | - array ( |
|
| 243 | + 'opac_id' => array( |
|
| 244 | + 'format' => array( |
|
| 245 | + array( |
|
| 246 | 246 | 'encoded' => 1, |
| 247 | 247 | 'xpath' => './mods:identifier[@type="opac"]', |
| 248 | 248 | 'xpath_sorting' => '', |
| 249 | 249 | ), |
| 250 | - array ( |
|
| 250 | + array( |
|
| 251 | 251 | 'encoded' => 2, |
| 252 | 252 | 'xpath' => './teihdr:fileDesc/teihdr:publicationStmt/teihdr:idno[@type="opac"]', |
| 253 | 253 | 'xpath_sorting' => '', |
@@ -264,14 +264,14 @@ discard block |
||
| 264 | 264 | 'is_listed' => 0, |
| 265 | 265 | 'index_autocomplete' => 0, |
| 266 | 266 | ), |
| 267 | - 'union_id' => array ( |
|
| 268 | - 'format' => array ( |
|
| 269 | - array ( |
|
| 267 | + 'union_id' => array( |
|
| 268 | + 'format' => array( |
|
| 269 | + array( |
|
| 270 | 270 | 'encoded' => 1, |
| 271 | 271 | 'xpath' => './mods:identifier[@type="ppn"]', |
| 272 | 272 | 'xpath_sorting' => '', |
| 273 | 273 | ), |
| 274 | - array ( |
|
| 274 | + array( |
|
| 275 | 275 | 'encoded' => 2, |
| 276 | 276 | 'xpath' => './teihdr:fileDesc/teihdr:publicationStmt/teihdr:idno[@type="mmid"]', |
| 277 | 277 | 'xpath_sorting' => '', |
@@ -288,14 +288,14 @@ discard block |
||
| 288 | 288 | 'is_listed' => 0, |
| 289 | 289 | 'index_autocomplete' => 0, |
| 290 | 290 | ), |
| 291 | - 'record_id' => array ( |
|
| 292 | - 'format' => array ( |
|
| 293 | - array ( |
|
| 291 | + 'record_id' => array( |
|
| 292 | + 'format' => array( |
|
| 293 | + array( |
|
| 294 | 294 | 'encoded' => 1, |
| 295 | 295 | 'xpath' => './mods:recordInfo/mods:recordIdentifier', |
| 296 | 296 | 'xpath_sorting' => '', |
| 297 | 297 | ), |
| 298 | - array ( |
|
| 298 | + array( |
|
| 299 | 299 | 'encoded' => 2, |
| 300 | 300 | 'xpath' => './teihdr:fileDesc/teihdr:publicationStmt/teihdr:idno[@type="recordIdentifier"]', |
| 301 | 301 | 'xpath_sorting' => '', |
@@ -312,14 +312,14 @@ discard block |
||
| 312 | 312 | 'is_listed' => 0, |
| 313 | 313 | 'index_autocomplete' => 0, |
| 314 | 314 | ), |
| 315 | - 'prod_id' => array ( |
|
| 316 | - 'format' => array ( |
|
| 317 | - array ( |
|
| 315 | + 'prod_id' => array( |
|
| 316 | + 'format' => array( |
|
| 317 | + array( |
|
| 318 | 318 | 'encoded' => 1, |
| 319 | 319 | 'xpath' => './mods:identifier[@type="goobi"]', |
| 320 | 320 | 'xpath_sorting' => '', |
| 321 | 321 | ), |
| 322 | - array ( |
|
| 322 | + array( |
|
| 323 | 323 | 'encoded' => 2, |
| 324 | 324 | 'xpath' => './teihdr:fileDesc/teihdr:publicationStmt/teihdr:idno[@type="goobi"]', |
| 325 | 325 | 'xpath_sorting' => '', |
@@ -21,11 +21,11 @@ discard block |
||
| 21 | 21 | |
| 22 | 22 | protected $modPath = 'newclient/'; |
| 23 | 23 | |
| 24 | - protected $buttonArray = array ( |
|
| 24 | + protected $buttonArray = array( |
|
| 25 | 25 | 'SHORTCUT' => '', |
| 26 | 26 | ); |
| 27 | 27 | |
| 28 | - protected $markerArray = array ( |
|
| 28 | + protected $markerArray = array( |
|
| 29 | 29 | 'CSH' => '', |
| 30 | 30 | 'MOD_MENU' => '', |
| 31 | 31 | 'CONTENT' => '', |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | // Build data array. |
| 93 | 93 | foreach ($metadata as $index_name => $values) { |
| 94 | 94 | |
| 95 | - $formatIds = array (); |
|
| 95 | + $formatIds = array(); |
|
| 96 | 96 | |
| 97 | 97 | foreach ($values['format'] as $format) { |
| 98 | 98 | |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | |
| 107 | 107 | } |
| 108 | 108 | |
| 109 | - $data['tx_dlf_metadata'][uniqid('NEW')] = array ( |
|
| 109 | + $data['tx_dlf_metadata'][uniqid('NEW')] = array( |
|
| 110 | 110 | 'pid' => intval($this->id), |
| 111 | 111 | 'label' => $GLOBALS['LANG']->getLL($index_name), |
| 112 | 112 | 'index_name' => $index_name, |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | protected function cmdAddSolrCore() { |
| 169 | 169 | |
| 170 | 170 | // Build data array. |
| 171 | - $data['tx_dlf_solrcores'][uniqid('NEW')] = array ( |
|
| 171 | + $data['tx_dlf_solrcores'][uniqid('NEW')] = array( |
|
| 172 | 172 | 'pid' => intval($this->id), |
| 173 | 173 | 'label' => $GLOBALS['LANG']->getLL('solrcore').' (PID '.$this->id.')', |
| 174 | 174 | 'index_name' => '', |
@@ -220,7 +220,7 @@ discard block |
||
| 220 | 220 | // Build data array. |
| 221 | 221 | foreach ($structures as $index_name => $values) { |
| 222 | 222 | |
| 223 | - $data['tx_dlf_structures'][uniqid('NEW')] = array ( |
|
| 223 | + $data['tx_dlf_structures'][uniqid('NEW')] = array( |
|
| 224 | 224 | 'pid' => intval($this->id), |
| 225 | 225 | 'toplevel' => $values['toplevel'], |
| 226 | 226 | 'label' => $GLOBALS['LANG']->getLL($index_name), |
@@ -335,7 +335,7 @@ discard block |
||
| 335 | 335 | } else { |
| 336 | 336 | |
| 337 | 337 | // Configuration missing. |
| 338 | - $_url = \TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl(\TYPO3\CMS\Core\Utility\GeneralUtility::linkThisScript(array ('id' => $this->id, 'CMD' => 'addStructure'))); |
|
| 338 | + $_url = \TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl(\TYPO3\CMS\Core\Utility\GeneralUtility::linkThisScript(array('id' => $this->id, 'CMD' => 'addStructure'))); |
|
| 339 | 339 | |
| 340 | 340 | $_message = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance( |
| 341 | 341 | 'TYPO3\\CMS\\Core\\Messaging\\FlashMessage', |
@@ -370,7 +370,7 @@ discard block |
||
| 370 | 370 | } else { |
| 371 | 371 | |
| 372 | 372 | // Configuration missing. |
| 373 | - $_url = \TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl(\TYPO3\CMS\Core\Utility\GeneralUtility::linkThisScript(array ('id' => $this->id, 'CMD' => 'addMetadata'))); |
|
| 373 | + $_url = \TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl(\TYPO3\CMS\Core\Utility\GeneralUtility::linkThisScript(array('id' => $this->id, 'CMD' => 'addMetadata'))); |
|
| 374 | 374 | |
| 375 | 375 | $_message = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance( |
| 376 | 376 | 'TYPO3\\CMS\\Core\\Messaging\\FlashMessage', |
@@ -409,7 +409,7 @@ discard block |
||
| 409 | 409 | } else { |
| 410 | 410 | |
| 411 | 411 | // Configuration missing. |
| 412 | - $_url = \TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl(\TYPO3\CMS\Core\Utility\GeneralUtility::linkThisScript(array ('id' => $this->id, 'CMD' => 'addAccessRights'))); |
|
| 412 | + $_url = \TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl(\TYPO3\CMS\Core\Utility\GeneralUtility::linkThisScript(array('id' => $this->id, 'CMD' => 'addAccessRights'))); |
|
| 413 | 413 | |
| 414 | 414 | $_message = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance( |
| 415 | 415 | 'TYPO3\\CMS\\Core\\Messaging\\FlashMessage', |
@@ -461,7 +461,7 @@ discard block |
||
| 461 | 461 | } else { |
| 462 | 462 | |
| 463 | 463 | // Default core available, but this is deprecated. |
| 464 | - $_url = \TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl(\TYPO3\CMS\Core\Utility\GeneralUtility::linkThisScript(array ('id' => $this->id, 'CMD' => 'addSolrcore'))); |
|
| 464 | + $_url = \TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl(\TYPO3\CMS\Core\Utility\GeneralUtility::linkThisScript(array('id' => $this->id, 'CMD' => 'addSolrcore'))); |
|
| 465 | 465 | |
| 466 | 466 | $_message = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance( |
| 467 | 467 | 'TYPO3\\CMS\\Core\\Messaging\\FlashMessage', |
@@ -476,7 +476,7 @@ discard block |
||
| 476 | 476 | } else { |
| 477 | 477 | |
| 478 | 478 | // Solr core missing. |
| 479 | - $_url = \TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl(\TYPO3\CMS\Core\Utility\GeneralUtility::linkThisScript(array ('id' => $this->id, 'CMD' => 'addSolrcore'))); |
|
| 479 | + $_url = \TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl(\TYPO3\CMS\Core\Utility\GeneralUtility::linkThisScript(array('id' => $this->id, 'CMD' => 'addSolrcore'))); |
|
| 480 | 480 | |
| 481 | 481 | $_message = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance( |
| 482 | 482 | 'TYPO3\\CMS\\Core\\Messaging\\FlashMessage', |