Changeset 3185
- Timestamp:
- 07/21/2008 11:45:16 PM (4 months ago)
- Location:
- trunk/system/libraries
- Files:
-
- 2 modified
-
Calendar.php (modified) (3 diffs)
-
Image.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/libraries/Calendar.php
r3184 r3185 22 22 protected $observed_data; 23 23 24 /** 25 * Returns an array of the names of the days, using the current locale. 26 * 27 * @param boolean return short names 28 * @return array 29 */ 24 30 public static function days($short = FALSE) 25 31 { … … 30 36 $headings = array('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'); 31 37 32 if (strpos(Kohana::config('locale.lang .0'), 'en') === FALSE)38 if (strpos(Kohana::config('locale.language.0'), 'en') !== 0) 33 39 { 34 40 // This is a bit awkward, but it works properly and is reliable … … 37 43 // Convert the English names to i18n names 38 44 $headings[$i] = strftime($format, strtotime($day)); 45 } 46 } 47 elseif ($short == TRUE) 48 { 49 foreach ($headings as $i => $day) 50 { 51 // Shorten the day names to 3 letters 52 $headings[$i] = substr($day, 0, 3); 39 53 } 40 54 } -
trunk/system/libraries/Image.php
r3168 r3185 131 131 if (isset($this->image[$property])) 132 132 { 133 return $this->image[$property]; 134 } 133 return $this->image[$property]; 134 } 135 135 else 136 136 { 137 137 throw new Kohana_Exception('core.invalid_property', $column, get_class($this)); 138 } 139 } 140 138 } 139 } 140 141 141 /** 142 142 * Resize an image to a specific width and height. By default, Kohana will
