Skip to content

Commit d826a13

Browse files
committed
[BUGFIX] remove static method calls on non-static methods
This changes make the extension usable under PHP 5.6 Resolves: #65490 Change-Id: I7b226c99dbc707950215b8ab5004fe96d0bb685b
1 parent e4133b3 commit d826a13

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Classes/Facet/SimpleFacetRenderer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function getFacetProperties() {
7979

8080
if ($facet['count'] > $this->solrConfiguration['search.']['faceting.']['limit']) {
8181
$showAllLink = '<a href="#" class="tx-solr-facet-show-all">###LLL:faceting_showMore###</a>';
82-
$showAllLink = tslib_cObj::wrap($showAllLink, $this->solrConfiguration['search.']['faceting.']['showAllLink.']['wrap']);
82+
$showAllLink = $GLOBALS['TSFE']->cObj->wrap($showAllLink, $this->solrConfiguration['search.']['faceting.']['showAllLink.']['wrap']);
8383
$facet['show_all_link'] = $showAllLink;
8484
}
8585

@@ -92,4 +92,4 @@ public function getFacetProperties() {
9292
include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/solr/Classes/Facet/SimpleFacetRenderer.php']);
9393
}
9494

95-
?>
95+
?>

Classes/SpellChecker.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public function getSpellCheckingSuggestions() {
136136

137137
$suggestions = $this->getSuggestions();
138138
if($suggestions && !$suggestions['correctlySpelled'] && !empty($suggestions['collation'])) {
139-
$suggestionsLink = tslib_cObj::noTrimWrap(
139+
$suggestionsLink = $GLOBALS['TSFE']->cObj->noTrimWrap(
140140
$this->getSuggestionQueryLink(),
141141
$this->configuration['search.']['spellchecking.']['wrap']
142142
);
@@ -153,4 +153,4 @@ public function getSpellCheckingSuggestions() {
153153
include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/solr/Classes/SpellChecker.php']);
154154
}
155155

156-
?>
156+
?>

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
}
3434
],
3535
"require": {
36-
"php": ">5.3.0,~5.5.0"
36+
"php": ">5.3.0,~5.6.0"
3737
},
3838
"require-dev": {
3939
"typo3-ci/typo3cms": "dev-master"

0 commit comments

Comments
 (0)