Exemple #1
0
            if (count($patch_files) > 0) {
                $feedbacks[] = _AT('updater_show_patch_files');
                foreach ($patch_files as $patch_file) {
                    if ($patch_file != "") {
                        $feedbacks[count($feedbacks) - 1] .= "<strong>" . $patch_file . "</strong><br />";
                    }
                }
            }
        }
        if (count($feedbacks) > 0) {
            print_feedback($feedbacks);
        } else {
            print_feedback(array());
        }
    }
}
$msg->printAll();
// display installed patches
$rows = $patchesDAO->getPatchByVersion(VERSION);
if (is_array($rows)) {
    $num_of_patches_in_db = count($rows);
} else {
    $num_of_patches_in_db = 0;
}
$num_of_patches = $num_of_patches_in_db + count($patch_list_array);
$savant->assign('num_of_patches', $num_of_patches);
$savant->assign('patches_in_db', $rows);
$savant->assign('patch_list_array', $patch_list_array);
$savant->assign('patches_in_db', $rows);
$savant->assign('patches_in_db', $rows);
$savant->display('updater/index.tmpl.php');