Changeset 656
- Timestamp:
- 10/04/2007 11:55:00 PM (14 months ago)
- Location:
- trunk/system
- Files:
-
- 3 modified
-
core/Benchmark.php (modified) (1 diff)
-
libraries/View.php (modified) (1 diff)
-
libraries/drivers/Database_Mysql.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/core/Benchmark.php
r654 r656 64 64 * 65 65 * @access public 66 * @param integer 66 67 * @return array 67 68 */ 68 public static function get_all( )69 public static function get_all($decimals = 4) 69 70 { 70 71 $benchmarks = array(); 71 foreach (self::$marks as $name => $times)72 foreach (self::$marks as $name) 72 73 { 73 $benchmarks[$name] = self::get($name );74 $benchmarks[$name] = self::get($name, $decimals); 74 75 } 75 76 -
trunk/system/libraries/View.php
r652 r656 42 42 public function __construct($name, $data = NULL) 43 43 { 44 if (preg_match('/\.([g |t]if|jpe?g|png|swf|js|css)$/Di', $name, $type))44 if (preg_match('/\.([gt]if|jpe?g|png|js|css|swf)$/Di', $name, $type)) 45 45 { 46 46 $type = $type[1]; -
trunk/system/libraries/drivers/Database_Mysql.php
r655 r656 311 311 public function list_tables() 312 312 { 313 $sql = "SHOW TABLES FROM `".$this->db_config['connection']['database']."`";313 $sql = 'SHOW TABLES FROM `'.$this->db_config['connection']['database'].'`'; 314 314 $query = $this->query($sql); 315 315 $query = $query->result();
