Skip to content

Commit

Permalink
Fix version compare condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuurlijk committed Oct 15, 2019
1 parent 5db1f26 commit 041beaa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Classes/Adapter/Core/Framework.php
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ public function getAdminUrl()
*/
public function getLibraryId($machineName, $majorVersion = null, $minorVersion = null)
{
if (version_compare(TYPO3_version, '7.0', '<=')) {
if (version_compare(TYPO3_version, '8.0', '<')) {
$where = 'machine_name = :machineName';
$arguments = [':machineName' => $machineName];

Expand Down Expand Up @@ -532,7 +532,7 @@ public function getWhitelist($isLibrary, $defaultContentWhitelist, $defaultLibra
*/
public function isPatchedLibrary($library)
{
if (version_compare(TYPO3_version, '7.0', '<=')) {
if (version_compare(TYPO3_version, '8.0', '<')) {
$arguments = [
':machineName' => $library['machineName'],
':majorVersion' => $library['majorVersion'],
Expand Down Expand Up @@ -1096,7 +1096,7 @@ public function deleteLibrary($library)
*/
public function loadContent($id)
{
if (version_compare(TYPO3_version, '7.0', '<=')) {
if (version_compare(TYPO3_version, '8.0', '<')) {
$row = [];
$statement = $this->databaseLink->prepare_PREPAREDquery(
'
Expand Down
4 changes: 2 additions & 2 deletions Classes/Backend/TCA.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function getContentTitle(&$parameters, $parentObject)
*/
protected function getLibraryByUid($uid)
{
if (version_compare(TYPO3_version, '7.0', '<=')) {
if (version_compare(TYPO3_version, '8.0', '<')) {
$libraryRow = $this->getDBHandle()->exec_SELECTgetSingleRow(
'*',
'tx_h5p_domain_model_library',
Expand Down Expand Up @@ -157,7 +157,7 @@ public function getContentResultTitle(&$parameters, $parentObject)
*/
protected function getContentByUid($uid)
{
if (version_compare(TYPO3_version, '7.0', '<=')) {
if (version_compare(TYPO3_version, '8.0', '<')) {
$contentRow = $this->getDBHandle()->exec_SELECTgetSingleRow(
'*',
'tx_h5p_domain_model_content',
Expand Down
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
'dependencies' => '',
'state' => 'stable',
'uploadfolder' => 0,
'version' => '0.2.10',
'version' => '0.2.11',
'constraints' => [
'depends' => [
'typo3' => '7.0.0-9.5.99',
Expand Down

0 comments on commit 041beaa

Please sign in to comment.