Skip to content

Commit a5773a2

Browse files
anjeylinkkaystrobach
authored andcommitted
[BUGFIX] use new constants in TYPO3 8.x (#53)
1 parent 7e40faa commit a5773a2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Classes/Service/DyncssService.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,4 +114,18 @@ public static function getOverrides()
114114

115115
return $overrides;
116116
}
117+
118+
/**
119+
* Check CLI mode depending on TYPO3 version
120+
*
121+
* @return int
122+
*/
123+
protected static function isCliMode()
124+
{
125+
if (version_compare(TYPO3_version, '8.0', '<')) {
126+
return TYPO3_cliMode;
127+
} else {
128+
return TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_CLI;
129+
}
130+
}
117131
}

0 commit comments

Comments
 (0)