@@ -38,10 +38,6 @@ public function isEnabled()
38
38
public function loadConfigs ($ configData )
39
39
{
40
40
parent ::loadConfigs ($ configData );
41
- if (preg_match ('/MSIE 7/ ' ,$ _SERVER ['HTTP_USER_AGENT ' ])) {
42
- // Force legacy theme for the moment
43
- $ this ->pluginConf ["GUI_THEME " ] = "oxygen " ;
44
- }
45
41
if (!defined ("AJXP_THEME_FOLDER " )) {
46
42
define ("CLIENT_RESOURCES_FOLDER " , AJXP_PLUGINS_FOLDER ."/gui.ajax/res " );
47
43
define ("AJXP_THEME_FOLDER " , CLIENT_RESOURCES_FOLDER ."/themes/ " .$ this ->pluginConf ["GUI_THEME " ]);
@@ -53,10 +49,6 @@ public function loadConfigs($configData)
53
49
54
50
public function switchAction ($ action , $ httpVars , $ fileVars )
55
51
{
56
- if (preg_match ('/MSIE 7/ ' ,$ _SERVER ['HTTP_USER_AGENT ' ])) {
57
- // Force legacy theme for the moment
58
- $ this ->pluginConf ["GUI_THEME " ] = "oxygen " ;
59
- }
60
52
if (!defined ("AJXP_THEME_FOLDER " )) {
61
53
define ("CLIENT_RESOURCES_FOLDER " , AJXP_PLUGINS_FOLDER ."/gui.ajax/res " );
62
54
define ("AJXP_THEME_FOLDER " , CLIENT_RESOURCES_FOLDER ."/themes/ " .$ this ->pluginConf ["GUI_THEME " ]);
@@ -227,8 +219,8 @@ public function switchAction($action, $httpVars, $fileVars)
227
219
} else {
228
220
$ content = file_get_contents (AJXP_INSTALL_PATH ."/plugins/gui.ajax/res/html/gui.html " );
229
221
}
230
- if (preg_match ('/MSIE 7/ ' ,$ _SERVER ['HTTP_USER_AGENT ' ])) {
231
- $ content = str_replace ( " ajaxplorer_boot.js " , " ajaxplorer_boot_protolegacy.js " , $ content ) ;
222
+ if (preg_match ('/MSIE 7/ ' ,$ _SERVER ['HTTP_USER_AGENT ' ])){
223
+ $ ADDITIONAL_FRAMEWORKS = "" ;
232
224
}
233
225
$ content = str_replace ("AJXP_ADDITIONAL_JS_FRAMEWORKS " , $ ADDITIONAL_FRAMEWORKS , $ content );
234
226
$ content = AJXP_XMLWriter::replaceAjxpXmlKeywords ($ content , false );
0 commit comments