Преглед на файлове

added check for php file

jimmy1993k преди 11 години
родител
ревизия
bcc3fb33d7
променени са 1 файла, в които са добавени 7 реда и са изтрити 1 реда
  1. 7 1
      Service/GearmanCacheWrapper.php

+ 7 - 1
Service/GearmanCacheWrapper.php

@@ -261,7 +261,13 @@ class GearmanCacheWrapper
          * Every file found is parsed
          */
         foreach ($finder as $file) {
-
+            
+			/**
+			 * Check if the file is a php file else go to next file
+			 */
+			if( strtolower( $file->getExtension() ) != 'php')
+				continue;
+				
             /**
              * File is accepted to be parsed
              */