|
Ok, I'm not sure if this is correct way to fix that problem but I was able to get that fixed by doing the following modifications:
showcat.php / lines 141-144
was:
$query = "SELECT id,catname FROM {$Globals['pp_db_prefix']}categories WHERE id='$cat'";
$ctitleq = ppmysql_query($query, $link);
if ( $ctitleq ) {
list( $catid, $thecatname ) = mysql_fetch_row($ctitleq);
Corrected:
$query = "SELECT template,id,catname FROM {$Globals['pp_db_prefix']}categories WHERE id='$cat'";
$ctitleq = ppmysql_query($query, $link);
if ( $ctitleq ) {
list( $Globals['cattemp'], $catid, $thecatname ) = mysql_fetch_row($ctitleq);
So I added 'template' to mysql query and ' $Globals['cattemp'] ' to list(...
And then showproduct.php / lines 111-113
Fixed:
$query = "SELECT template,catname,extra1,extra2,extra3,extra4,extra5,extra6 FROM {$Globals['pp_db_prefix']}categories where id='$cat'";
$resulta = ppmysql_query($query,$link);
list( $Globals['cattemp'], $thecatname, $Globals['extra1name'], $Globals['extra2name'], $Globals['extra3name'], $Globals['extra4name'], $Globals['extra5name']
Same here... template and then $Globals....
|