com web/doc: Don't display files without EN-Rev in "Outdated files" tool: include/lib_revcheck.inc.php

[email protected] Tue, 01 Jul 2014 03:55:07 +0000
Newsgroups php.doc.web
Message-ID <[email protected]>
Commit:    d0a797bfb36445a6a3e13b753f6ac117d0093619
Author:    Sobak <[email protected]>         Tue, 1 Jul 2014 05:55:07 +0200
Parents:   4a9f68540fc69a395a57093e67767a16b9bfa346
Branches:  master

Link:       http://git.php.net/?p=web/doc.git;a=commitdiff;h=d0a797bfb36445a6a3e13b753f6ac117d0093619

Log:
Don't display files without EN-Rev in "Outdated files" tool

This change has been already applied to counters in order to
separate files without rev number from outdated files. This is for
consistency and we already have separate tool to browse list of such
files.

Changed paths:
  M  include/lib_revcheck.inc.php


Diff:
diff --git a/include/lib_revcheck.inc.php b/include/lib_revcheck.inc.php
index d4578d5..506ac27 100644
--- a/include/lib_revcheck.inc.php
+++ b/include/lib_revcheck.inc.php
@@ -64,7 +64,7 @@ function get_outdated_files($idx, $lang, $filter = null, $value = null)
     $sql = 'SELECT a.status, a.name AS file, a.maintainer, c.revision AS en_rev, a.revision AS trans_rev, b.name AS name, a.dir AS dir
     FROM files a, dirs b
     LEFT JOIN files c ON c.name = a.name AND c.dir = a.dir
-    WHERE b.id = a.dir AND a.lang="' . $lang . '" AND a.revision != c.revision AND c.lang="en" ';
+    WHERE b.id = a.dir AND a.lang="' . $lang . '" AND a.revision != c.revision AND a.revision != "n/a" AND c.lang="en" ';
 
     if ($filter == 'dir') {
         $sql .= 'AND a.dir = '.(int)$value;