Premier bug corrigé avec nouveau fichier produit sur vbulletin-fr
Deuxieme bug :
Remplacer le module
[vBfp2] Recupération du cache du portail
Par ceci :
Code PHP:
//definition des options du portail
$vbfp_options = unserialize($vbulletin->vbfp_option);
if (THIS_SCRIPT == 'portal_index') {
//on récupère les infos de la page
$page_cache = unserialize($vbulletin->vbfp_page);
//on récupère les infos du module
$module_cache = unserialize($vbulletin->vbfp_module);
//on récupère les options de la page
$page_options_cache = unserialize($vbulletin->vbfp_poption);
//on récupère les permissions
$vbfp_perm_cache = unserialize($vbulletin->vbfp_permission);
$vbulletin->input->clean_array_gpc('r', array(
'page' => TYPE_STR
));
if ($vbulletin->GPC['page'] != '') {
$page_title = $vbulletin->GPC['page'];
foreach ($page_cache as $title => $tmp) {
if (strtolower($title) == strtolower($page_title)) {
$page = $tmp;
$PAGE_TITLE = $title;
}
}
}
foreach ($page_cache as $title => $tmp) {
if ($tmp['defaut']) {
if ($page_title == '')
{
$page = $tmp;
$PAGE_TITLE = $title;
}
$IS_DEFAUT = $title;
}
}
if (is_array($page['modules'])) {
foreach ($page['modules'] as $colonne => $tmp1) {
foreach ($tmp1 as $name) {
if (preg_match('/^(.+?)(_\d+|)$/i', $name, $match)) {
$module = $match[1];
if ($module_cache["$module"]['phrasegroups'] != '') {
if (is_array($phrasegroups)) {
$phrasegroups = array_merge($phrasegroups, explode(',', $module_cache["$module"]['phrasegroups']));
} else {
$phrasegroups = explode(',', $module_cache["$module"]['phrasegroups']);
}
}
}
}
}
}
}