svn: /web/doc-editor/trunk/php/ RepositoryManager.php

[email protected] (Chan Ka Shing)
Newsgroups php.doc.web
Message-ID <[email protected]>
mrkschan                                 Wed, 28 Apr 2010 06:59:41 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=298691

Log:
excludes .png .gif .jpg from revcheck process

Changed paths:
    U   web/doc-editor/trunk/php/RepositoryManager.php

Modified: web/doc-editor/trunk/php/RepositoryManager.php
===================================================================
--- web/doc-editor/trunk/php/RepositoryManager.php	2010-04-28 06:53:08 UTC (rev 298690)
+++ web/doc-editor/trunk/php/RepositoryManager.php	2010-04-28 06:59:41 UTC (rev 298691)
@@ -1405,7 +1405,12 @@
                     continue;
                 }

-                if ($name != '.' && $name != '..' && $name != '.svn' && $path != '/functions/') {
+                if ($name != '.' && $name != '..' && $name != '.svn'
+                 && !preg_match('/\.png$/', $name)
+                 && !preg_match('/\.gif$/', $name)
+                 && !preg_match('/\.jpg$/', $name)
+                 && $path != '/functions/'
+                ) {
                     if (is_dir($file->full_path)) {
                         $dirs[] = $file;
                     } elseif (is_file($file->full_path)) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.