Changeset 3209 for trunk/modules

Show
Ignore:
Timestamp:
07/27/2008 03:55:43 AM (4 months ago)
Author:
Geert
Message:

According to the spec HTTP header names are separated by a hyphen and the first letter of each word is capitalized.

See:

Location:
trunk/modules
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/modules/gmaps/controllers/gmaps_demo.php

    r3206 r3209  
    2626                // Set the map center point 
    2727                $map->center(0, 0, 1)->controls('large')->types('G_PHYSICAL_MAP', 'add'); 
    28                  
     28 
    2929                // Add a custom marker icon 
    30             $map->add_icon('tinyIcon', array 
    31             ( 
     30                $map->add_icon('tinyIcon', array 
     31                ( 
    3232                        'image' => 'http://labs.google.com/ridefinder/images/mm_20_red.png', 
    3333                        'shadow' => 'http://labs.google.com/ridefinder/images/mm_20_shadow.png', 
     
    4343                View::factory('gmaps/api_demo')->set(array('api_url' => Gmap::api_url(), 'map' => $map->render()))->render(TRUE); 
    4444        } 
    45          
     45 
    4646        public function image_map() 
    4747        { 
    4848                $points = array('-37.814251' => '144.963169', '-33.867139' => '151.207114', '-27.467580' => '153.027892'); 
    49                  
     49 
    5050                View::factory('gmaps/static_demo')->set(array('simple' => Gmap::static_map(44.9801, -93.2519),'multi' => Gmap::static_map($points)))->render(TRUE); 
    5151        } 
     
    6767                        // Add a new marker 
    6868                        $map->add_marker($location->lat, $location->lon, 
    69                          
     69 
    7070                        // Get the info window HTML 
    7171                        View::factory('gmaps/info_window')->bind('location', $location)->render()); 
    7272                } 
    7373 
    74                 header('Content-type: text/javascript'); 
     74                header('Content-Type: text/javascript'); 
    7575                echo $map->render(); 
    7676        } 
     
    138138        { 
    139139                $map = new Gmap('map'); 
    140                  
     140 
    141141                $map->center(0, 35, 16)->controls('large'); 
    142142 
  • trunk/modules/media/controllers/media.php

    r3163 r3209  
    8282                } 
    8383 
    84                 $mimetype AND header('Content-type: '.$mimetype); 
     84                $mimetype AND header('Content-Type: '.$mimetype); 
    8585                echo $output; 
    8686        } 
     
    116116                } 
    117117 
    118                 $mimetype AND header('Content-type: '.$mimetype); 
     118                $mimetype AND header('Content-Type: '.$mimetype); 
    119119                echo $output; 
    120120        } 
    121  
    122121 
    123122        public function _default() 
  • trunk/modules/user_guide/controllers/user_guide.php

    r3163 r3209  
    119119        public function js($filename) 
    120120        { 
    121                 header('Content-type: text/javascript'); 
     121                header('Content-Type: text/javascript'); 
    122122 
    123123                $this->_media('js', $filename); 
     
    126126        public function css($filename) 
    127127        { 
    128                 header('Content-type: text/css'); 
     128                header('Content-Type: text/css'); 
    129129 
    130130                $this->_media('css', $filename);