Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //in IE11 you can't use the conditional comments as in older browsers
- //browscap must be enabled and configured for get_browser to work
- //if not enabled we include the script anyway because the script has capabilities detections
- //WARNING if browscap is not setup make sure scripts are compatible with all the other browsers
- $is_IE=true;
- if (get_cfg_var('browscap')){
- $browser = get_browser();
- if($browser->browser != 'IE')
- $is_IE=false;
- }
- if($is_IE){
- echo '<script src="'.Yii::app()->theme->baseUrl.'/js/ie/dom4.js" cache="false"></script>';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement