Index: classes/class.tx_templavoila_div.php
===================================================================
--- classes/class.tx_templavoila_div.php (revision 32066)
+++ classes/class.tx_templavoila_div.php (working copy)
@@ -35,9 +35,9 @@
* @param $url
*/
public static function sanitizeLocalUrl($url = '') {
- if (t3lib_div::compat_version('4.3')) {
+ if (version_compare(TYPO3_version, '4.3', '>')) {
return t3lib_div::sanitizeLocalUrl($url);
- } elseif (t3lib_div::compat_version('4.2') && method_exists('t3lib_div', 'sanitizeLocalUrl')) {
+ } elseif (version_compare(TYPO3_version, '4.2', '>') && method_exists('t3lib_div', 'sanitizeLocalUrl')) {
return t3lib_div::sanitizeLocalUrl($url);
} else {
return self::internalSanitizeLocalUrl($url);
@@ -58,7 +58,7 @@
private static function internalSanitizeLocalUrl($url = '') {
$sanitizedUrl = '';
$decodedUrl = rawurldecode($url);
- if (!t3lib_div::compat_version('4.1')) {
+ if (version_compare(TYPO3_version,'4.2','>')) {
if ($decodedUrl !== t3lib_div::removeXSS($decodedUrl)) {
$decodedUrl = '';
}
Index: mod1/class.tx_templavoila_mod1_wizards.php
===================================================================
--- mod1/class.tx_templavoila_mod1_wizards.php (revision 32066)
+++ mod1/class.tx_templavoila_mod1_wizards.php (working copy)
@@ -205,7 +205,7 @@
$this->doc->postCode.= $CMparts[2] . $tceforms->printNeededJSFunctions();
// fix due to #13762
- if (t3lib_div::compat_version('4.3')) {
+ if (version_compare(TYPO3_version, '4.3', '>')) {
$this->doc->inDocStyles .= '.c-inputButton{ cursor:pointer; }';
}
Index: mod1/db_new_content_el.php
===================================================================
--- mod1/db_new_content_el.php (revision 32066)
+++ mod1/db_new_content_el.php (working copy)
@@ -129,9 +129,9 @@
$this->doc->backPath = $BACK_PATH;
$this->doc->JScode='';
- if (t3lib_div::compat_version('4.3')) {
+ if (version_compare(TYPO3_version, '4.3', '>')) {
$pageRenderer = $this->doc->getPageRenderer()->loadPrototype();
- } elseif (t3lib_div::compat_version('4.2')) {
+ } elseif (version_compare(TYPO3_version, '4.2', '>')) {
$this->doc->loadJavascriptLib('contrib/prototype/prototype.js');
} else {
$this->doc->JScodeArray['prototypeJS'] = '';
Index: mod1/index.php
===================================================================
--- mod1/index.php (revision 32066)
+++ mod1/index.php (working copy)
@@ -355,7 +355,7 @@
}
// Check if we have to update the pagetree:
if (t3lib_div::_GP('updatePageTree')) {
- if (t3lib_div::compat_version('4.2')) {
+ if (version_compare(TYPO3_version, '4.2', '>')) {
t3lib_BEfunc::setUpdateSignal('updatePageTree');
} else {
t3lib_BEfunc::getSetUpdateSignal('updatePageTree');
@@ -456,7 +456,7 @@
// Preparing context menues
// this also adds prototype to the list of required libraries
$CMparts = $this->doc->getContextMenuCode();
- if(!t3lib_div::compat_version ('4.2')) {
+ if(!version_compare(TYPO3_version, '4.2', '>')) {
if(!isset($this->doc->JScodeLibArray)) {
$this->doc->JScodeLibArray = array();
}
@@ -541,7 +541,7 @@
$title = t3lib_BEfunc::getRecordTitle('pages', $contentPage);
$linkToPid = 'index.php?id=' . intval($this->rootElementRecord['content_from_pid']);
$link = '' . htmlspecialchars($title) . ' (PID ' . intval($this->rootElementRecord['content_from_pid']) . ')';
- if (t3lib_div::compat_version('4.3')) {
+ if (version_compare(TYPO3_version, '4.3', '>')) {
$flashMessage = t3lib_div::makeInstance(
't3lib_FlashMessage',
'',
@@ -585,9 +585,9 @@
// Create sortables
if (is_array($this->sortableContainers)) {
$script = '';
- if (t3lib_div::compat_version ('4.3')) {
+ if (version_compare(TYPO3_version, '4.3', '>')) {
$items_json = json_encode ($this->sortableItems);
- } else if (t3lib_div::compat_version ('4.2')) {
+ } else if (version_compare(TYPO3_version, '4.2', '>')) {
$items_json = t3lib_div::array2json ($this->sortableItems);
} else {
include_once(PATH_typo3 . 'contrib/json.php');
@@ -609,7 +609,7 @@
$this->content .= t3lib_div::wrapJS($script);
}
}
- if(!t3lib_div::compat_version ('4.2')) {
+ if(!version_compare(TYPO3_version, '4.2', '>')) {
$this->doc->JScode = implode("\n", $this->doc->JScodeLibArray) . $this->doc->JScode;
}
} else { // No access or no current page uid:
Index: mod2/index.php
===================================================================
--- mod2/index.php (revision 32066)
+++ mod2/index.php (working copy)
@@ -2066,7 +2066,7 @@
$this->wizardData['templateObjectId'] = t3lib_BEfunc::wsMapId('tx_templavoila_tmplobj',$import->import_mapId['tx_templavoila_tmplobj'][1]);
$this->wizardData['typoScriptTemplateID'] = t3lib_BEfunc::wsMapId('sys_template',$import->import_mapId['sys_template'][1]);
- if (t3lib_div::compat_version('4.2')) {
+ if (version_compare(TYPO3_version, '4.3', '>')) {
t3lib_BEfunc::setUpdateSignal('updatePageTree');
} else {
t3lib_BEfunc::getSetUpdateSignal('updatePageTree');