diff --git a/e107_admin/theme.php b/e107_admin/theme.php index b3933ad48..247f63f17 100644 --- a/e107_admin/theme.php +++ b/e107_admin/theme.php @@ -76,7 +76,8 @@ if(!empty($_GET['action'])) case 'info': $string = base64_decode($_GET['src']); parse_str($string,$p); - echo $themec->renderThemeInfo($p); + $themeInfo = e107::getSession()->get('thememanager/online/'.intval($p['id'])); + echo $themec->renderThemeInfo($themeInfo); break; diff --git a/e107_handlers/theme_handler.php b/e107_handlers/theme_handler.php index bd06edffe..3aa1fe41d 100644 --- a/e107_handlers/theme_handler.php +++ b/e107_handlers/theme_handler.php @@ -818,14 +818,14 @@ class themeHandler function renderThemeInfo($theme) { - + global $pref; $author = ($theme['email'] ? "".$theme['author']."" : $theme['author']); $website = ($theme['website'] ? "".$theme['website']."" : ""); - $preview = "".($theme['preview'] ? "" : "").""; +// $preview = "".($theme['preview'] ? "" : "").""; $description = vartrue($theme['description'],''); - $compat = (intval($theme['compatibility']) == 2) ? "".number_format($theme['compatibility'], 1, '.','')." ".TPVLAN_78."": vartrue(number_format($theme['compatibility'], 1, '.',''),'1.0'); - $price = (!empty($theme['price'])) ? " ".$theme['price']."" : "".TPVLAN_77.""; + $compat = (intval($theme['compatibility']) == 2) ? "".number_format($theme['compatibility'], 1, '.','')." ".TPVLAN_77."": vartrue(number_format($theme['compatibility'], 1, '.',''),'1.0'); + $price = (!empty($theme['price'])) ? " ".$theme['price']."" : "".TPVLAN_76.""; $text = ""; @@ -1066,7 +1066,7 @@ class themeHandler $thumbPath = $theme['thumbnail']; $previewPath = $theme['preview'][0]; } - elseif(vartrue($theme['preview'][0])) + elseif(!empty($theme['preview'][0])) { $thumbPath = e_THEME.$theme['path'] ."/".$theme['preview'][0]; $previewPath = e_THEME.$theme['path'] ."/".$theme['preview'][0]; @@ -1089,6 +1089,9 @@ class themeHandler 'price' => $theme['price'] ); + + e107::getSession()->set('thememanager/online/'.$theme['id'], $theme); + $d = http_build_query($srcData,false,'&'); $base64 = base64_encode($d); // e107::getDebug()->log($theme['name'].': '.strlen($base64));