diff --git a/include/lib_revcheck.inc.php b/include/lib_revcheck.inc.php index e29a579..938c1d1 100644 --- a/include/lib_revcheck.inc.php +++ b/include/lib_revcheck.inc.php @@ -206,7 +206,8 @@ function get_missfiles($idx, $lang) $result = sqlite_query($idx, $sql); $num = sqlite_num_rows($result); if ($num == 0) { - return false; + // only 'null' will produce a 0 with sizeof() + return null; } else { $tmp = array(); while ($r = sqlite_fetch_array($result, SQLITE_ASSOC)) { diff --git a/scripts/gen_picture_info.php b/scripts/gen_picture_info.php index 01b495b..dd735d6 100644 --- a/scripts/gen_picture_info.php +++ b/scripts/gen_picture_info.php @@ -67,13 +67,15 @@ function generation_image($TYPE, $lang) { $pourcent[] = round($valeur * 100 / $total); } + + $noExplode = ($Total_files_lang == $up_to_date) ? 1 : 0; $legend = array($pourcent[0] . '%% up to date ('.$up_to_date.')', $pourcent[1] . '%% critical ('.$critical.')', $pourcent[2] . '%% old ('.$old.')', $pourcent[3] . '%% missing ('.$missing.')', $pourcent[4] . '%% without revtag ('.$no_tag.')'); $title = ucfirst($TYPE). ' : Details for '.$LANGUAGES[$lang].' Doc'; $graph = new PieGraph(530,300); $graph->SetShadow(); - + $graph->title->Set($title); $graph->title->Align('left'); $graph->title->SetFont(FF_FONT1,FS_BOLD); @@ -86,7 +88,9 @@ function generation_image($TYPE, $lang) { $p1 = new PiePlot3D($data); $p1->SetSliceColors(array("#68d888", "#ff6347", "#eee8aa", "#dcdcdc", "#f4a460")); - $p1->ExplodeAll(); + if ($noExplode != 1) { + $p1->ExplodeAll(); + } $p1->SetCenter(0.35,0.55); $p1->value->Show(false); diff --git a/scripts/rev.php b/scripts/rev.php index 315b607..b70964d 100644 --- a/scripts/rev.php +++ b/scripts/rev.php @@ -266,7 +266,9 @@ function do_revcheck($dir = '') { if ( (!is_dir($DOCS . 'en' . $dir.'/' .$file) && !in_array(substr($file, -3), array('xml','ent')) && substr($file, -13) != 'PHPEditBackup' ) || ($file == "functions.xml" && strpos($dir, '/reference') !== false) - || $dir == '/chmonly') { + || $dir == '/chmonly' + || $file == 'contributors.ent' || $file == 'contributors.xml' + || ($dir == '/appendices' && $file == 'reserved.constants.xml')) { continue; }