♥raiwa Posted March 12, 2014 Share Posted March 12, 2014 Oops... actually it isn't defined at all. MOBILE_SESSION is undefined too Hello Nick @@papalevies, For mobile_redirect ($this->mobileFile) > 0): This is left over from the older versions before Mobile Osc6 when the mobile files were placed in the root directory and had different filenames (mobile_index.php etc.) This part can just be removed it is not necessary any more, in mobile_redirect_subdomain.php it is already removed. However it doesn't affect the functionality of the redirect function. Just remove it: if(strpos('/' . $_SERVER['SCRIPT_NAME'],$this->mobileDir) > 0) I'll correct this in the next update. For ht_alternate.php: Yes, $PHP_SELF should be added to the global list: global $oscTemplate, $mobile_url, $PHP_SELF; I'll upload a fixed version. For MOBILE_SESSION: MOBILE_SESSION is defined in catalog/mobile/includes/application_top.php. So it is only defined when the mobile site is loaded. This is used with the "if (defined('MOBILE_SESSION'))" or "(defined('MOBILE_SESSION')?" statements in common files like , language files, funtion files, class files, modules etc. to produce different output formatting if a mobile page is viewed. You can see it for example in catalog/includes/classes/order_total.php. See also "Add-On Support.doc" Point 10. Thank you for the reports and kind regards Rainer Quote About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.