[BUGFIX] Incorrect TYPO3 environment check
[Packages/TYPO3.CMS.git] / t3lib / class.t3lib_tstemplate.php
index b513b1a..521f709 100644 (file)
@@ -748,7 +748,7 @@ class t3lib_TStemplate {
         * @return      void            Row is passed by reference.
         */
        function versionOL(&$row) {
-               if (is_object($GLOBALS['TSFE'])) { // Frontend:
+               if (TYPO3_MODE === 'FE') { // Frontend:
                        $GLOBALS['TSFE']->sys_page->versionOL('sys_template', $row);
                } else { // Backend:
                        t3lib_BEfunc::workspaceOL('sys_template', $row);
@@ -1601,4 +1601,4 @@ if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLA
        include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_tstemplate.php']);
 }
 
-?>
\ No newline at end of file
+?>