Quote:
Originally Posted by ezi designs
Hi Guys
Thanks for all your help and i am getting there, well im there all bar one one error
Parse error: syntax error, unexpected T_IF in /home/ezidesig/public_html/storedzine/include/get_language.php on line 206
Here is what the code looks like in that folder;
Code:
if (
($current_area == "C" || $current_area == "B") &&
!empty($HTTP_GET_VARS["sl"]) &&
!defined('IS_ROBOT') &&
############################################################
# X-CART-SEO Mod :: http://code.google.com/p/x-cart-seo/
############################################################
if (!empty($active_modules["XC_SEO"])) {
func_header_location($l_redirect);
}else{
if (!preg_match('!(\.htm(l)?|/$)!',$_tmp["path"])) {
func_header_location($l_redirect);
}
}
# End SEO {
|
Ezi Designs, you will get this error as it is wrong.
Also the install 4.1.3 instructions are wrong a little bit.
The instructions say:
IV. includes/get_language.php
===================
OPTIONAL:
The change to "get_language.php" is to avoid issues with
sites that have the language selector enabled.
NOTE: This change is for X-Cart 4.1.x series. Owners of 4.0.x, please
verify if this alteration is needed.
-----------
Find Code:
-----------
Code:
if (!preg_match('!(\.htm(l)?|/$)!',$_tmp["path"])) {
func_header_location($l_redirect);
}
------------
Replace With
------------
Code:
############################################################
# X-CART-SEO Mod ::
http://code.google.com/p/x-cart-seo/
############################################################
if (!empty($active_modules["XC_SEO"])) {
func_header_location($l_redirect);
}else{
if (!preg_match('!(\.htm(l)?|/$)!',$_tmp["path"])) {
func_header_location($l_redirect);
}
}
# End SEO
Well my virgin 4.1.3 file has at line 199
Code:
if (
($current_area == "C" || $current_area == "B") &&
!empty($HTTP_GET_VARS["sl"]) &&
!defined('IS_ROBOT') &&
!preg_match('/\.html?($|\?)|\/$/s', $l_redirect)
) {
func_header_location($l_redirect);
}
The instructions say find code:
Code:
if (!preg_match('!(\.htm(l)?|/$)!',$_tmp["path"])) {
func_header_location($l_redirect);
}
Which does not exist in my x-cart 4.1.3