Changeset 1499

Show
Ignore:
Timestamp:
12/12/2007 12:36:11 PM (10 months ago)
Author:
Shadowhand
Message:

Allow HTML files to be served with View.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/View.php

    r1434 r1499  
    3030        public function __construct($name, $data = NULL) 
    3131        { 
    32                 if (preg_match('/\.(?:gif|jpe?g|png|css|js|tiff?|swf|pdf)$/Di', $name, $type)) 
     32                if (preg_match('/\.(?:html?|gif|jpe?g|png|css|js|tiff?|swf|pdf)$/Di', $name, $type)) 
    3333                { 
    3434                        // Removes the period from the beginning of the type