Changed error message if browser is too old for running a TYPO3 backend
authorMichael Stucki <michael.stucki@typo3.org>
Sun, 4 Feb 2007 21:56:58 +0000 (21:56 +0000)
committerMichael Stucki <michael.stucki@typo3.org>
Sun, 4 Feb 2007 21:56:58 +0000 (21:56 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@1990 709f56b5-9817-0410-a4d7-c38de5d9e867

t3lib/class.t3lib_div.php
typo3/init.php

index 8f85f40..e9efcca 100755 (executable)
@@ -3242,7 +3242,8 @@ class t3lib_div {
                        switch($bInfo['BROWSER'])       {
                                case 'net':
                                        $bInfo['VERSION']= doubleval(substr($useragent,8));
                        switch($bInfo['BROWSER'])       {
                                case 'net':
                                        $bInfo['VERSION']= doubleval(substr($useragent,8));
-                                       if (strstr($useragent,'Netscape6/')) {$bInfo['VERSION']=doubleval(substr(strstr($useragent,'Netscape6/'),10));}
+                                       if (strstr($useragent,'Netscape6/')) {$bInfo['VERSION'] = doubleval(substr(strstr($useragent,'Netscape6/'),10));}       // Will we ever know if this was a typo or intention...?! :-(
+                                       if (strstr($useragent,'Netscape/6')) {$bInfo['VERSION'] = doubleval(substr(strstr($useragent,'Netscape/6'),10));}
                                        if (strstr($useragent,'Netscape/7')) {$bInfo['VERSION']=doubleval(substr(strstr($useragent,'Netscape/7'),9));}
                                break;
                                case 'msie':
                                        if (strstr($useragent,'Netscape/7')) {$bInfo['VERSION']=doubleval(substr(strstr($useragent,'Netscape/7'),9));}
                                break;
                                case 'msie':
index 00b3a2e..60ef219 100755 (executable)
@@ -291,7 +291,7 @@ if ($GLOBALS['TYPO3_DB']->sql_pconnect(TYPO3_db_host, TYPO3_db_username, TYPO3_d
 // Checks for proper browser
 // *******************************
 if (!$CLIENT['BROWSER'] && !(defined('TYPO3_cliMode') && TYPO3_cliMode))       {
 // Checks for proper browser
 // *******************************
 if (!$CLIENT['BROWSER'] && !(defined('TYPO3_cliMode') && TYPO3_cliMode))       {
-       t3lib_BEfunc::typo3PrintError ('Browser error','You must use 4+ browsers with TYPO3!',0);
+       t3lib_BEfunc::typo3PrintError ('Browser error','Your browser version looks incompatible with this TYPO3 version!',0);
        exit;
 }
 
        exit;
 }