Include files in Drupal use filenames with .inc - not .include.

CommentFileSizeAuthor
#1 decisions_inc_extension.patch1.21 KBChrisKennedy

Comments

ChrisKennedy’s picture

Status: Active » Fixed
StatusFileSize
new1.21 KB

Fixed. Poll.include and runoff.include also renamed to .inc in CVS.

Index: decisions.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/decisions/decisions.module,v
retrieving revision 1.73
diff -u -F^f -r1.73 decisions.module
--- decisions.module	3 Oct 2006 07:41:14 -0000	1.73
+++ decisions.module	5 Oct 2006 05:42:24 -0000
@@ -570,7 +570,7 @@ function _decisions_panic_on_mode($mode)
 /**
  * internal function to load the available modes.
  *
- * this scans the modes subdirectory to find mode.include files, where
+ * this scans the modes subdirectory to find mode.inc files, where
  * mode is considered to be the mode name. found files are loaded and
  * added to the mode list.
  *
@@ -580,7 +580,7 @@ function _decisions_panic_on_mode($mode)
 function _decisions_load_modes() {
   global $_decisions_modes;
 
-  foreach (file_scan_directory(dirname(__FILE__) . '/modes/', '^([^\.].*)\.include$', array('.', '..', 'CVS'), 0, FALSE) as $file) {
+  foreach (file_scan_directory(dirname(__FILE__) . '/modes/', '^([^\.].*)\.inc$', array('.', '..', 'CVS'), 0, FALSE) as $file) {
           require_once($file->filename);
           $mode = $file->name;
           if ( function_exists("decisions_${mode}_longname") ) {
Anonymous’s picture

Status: Fixed » Closed (fixed)