From 7927fffc0a65962290fdb22e3c4a530e41a0a040 Mon Sep 17 00:00:00 2001 From: Dominik Beerbohm Date: Sat, 3 Mar 2012 15:10:09 +0100 Subject: [PATCH] AP(RE)CHANGE Exclude files with the underscore prefix from manifest. --- core/manifest/ClassManifest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/manifest/ClassManifest.php b/core/manifest/ClassManifest.php index 5bbe0c3bb..ddc99c703 100644 --- a/core/manifest/ClassManifest.php +++ b/core/manifest/ClassManifest.php @@ -276,7 +276,7 @@ class SS_ClassManifest { $finder = new ManifestFileFinder(); $finder->setOptions(array( - 'name_regex' => '/\.php$/', + 'name_regex' => '/^[^_].*\.php$/', 'ignore_files' => array('index.php', 'main.php', 'cli-script.php'), 'ignore_tests' => !$this->tests, 'file_callback' => array($this, 'handleFile')