Changeset 2171
- Timestamp:
- 02/26/2008 05:42:45 AM (8 months ago)
- Location:
- trunk
- Files:
-
- 11 modified
-
modules/media/controllers/media.php (modified) (2 diffs)
-
system/core/Kohana.php (modified) (1 diff)
-
system/core/utf8/strcspn.php (modified) (1 diff)
-
system/core/utf8/strpos.php (modified) (1 diff)
-
system/core/utf8/strrpos.php (modified) (1 diff)
-
system/core/utf8/strspn.php (modified) (1 diff)
-
system/i18n/fr_FR/database.php (modified) (1 diff)
-
system/libraries/Router.php (modified) (1 diff)
-
system/libraries/Session.php (modified) (1 diff)
-
system/libraries/drivers/Database/Mysqli.php (modified) (1 diff)
-
system/libraries/drivers/Database/Pgsql.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/media/controllers/media.php
r2085 r2171 59 59 60 60 $mimetype = config::item('mimes.css'); 61 $mimetype = (isset($mimetype[0])) ? $mimetype[0] : 'text/stylesheet';61 $mimetype = isset($mimetype[0]) ? $mimetype[0] : 'text/stylesheet'; 62 62 63 63 $this->use_cache AND $data = $this->cache->get('media.css.'.$querystr); … … 123 123 124 124 $mimetype = Config::item('mimes.js'); 125 $mimetype = (isset($mimetype[0])) ? $mimetype[0] : 'text/javascript';125 $mimetype = isset($mimetype[0]) ? $mimetype[0] : 'text/javascript'; 126 126 127 127 $this->use_cache AND $data = $this->cache->get('media.js.'.$filename); -
trunk/system/core/Kohana.php
r2161 r2171 991 991 992 992 // Return the key, if set 993 return (isset($info[$key])) ? $info[$key] : NULL;993 return isset($info[$key]) ? $info[$key] : NULL; 994 994 } 995 995 -
trunk/system/core/utf8/strcspn.php
r1382 r2171 27 27 preg_match('/^[^'.$mask.']+/u', $str, $matches); 28 28 29 return (isset($matches[0])) ? utf8::strlen($matches[0]) : 0;29 return isset($matches[0]) ? utf8::strlen($matches[0]) : 0; 30 30 } -
trunk/system/core/utf8/strpos.php
r1382 r2171 22 22 { 23 23 $array = explode($search, $str, 2); 24 return (isset($array[1])) ? utf8::strlen($array[0]) : FALSE;24 return isset($array[1]) ? utf8::strlen($array[0]) : FALSE; 25 25 } 26 26 -
trunk/system/core/utf8/strrpos.php
r1382 r2171 22 22 { 23 23 $array = explode($search, $str, -1); 24 return (isset($array[0])) ? utf8::strlen(implode($search, $array)) : FALSE;24 return isset($array[0]) ? utf8::strlen(implode($search, $array)) : FALSE; 25 25 } 26 26 -
trunk/system/core/utf8/strspn.php
r1382 r2171 27 27 preg_match('/^[^'.$mask.']+/u', $str, $matches); 28 28 29 return (isset($matches[0])) ? utf8::strlen($matches[0]) : 0;29 return isset($matches[0]) ? utf8::strlen($matches[0]) : 0; 30 30 } -
trunk/system/i18n/fr_FR/database.php
r1922 r2171 11 11 'must_use_where' => 'Vous devez spécifier une clause WHERE pour votre requête.', 12 12 'must_use_table' => 'Vous devez spécifier une table de la base de données pour votre requête.', 13 'not_implemented' => 'La méthode %s que vous avez appellée n\'est pas supportée par le driver de base de données.' 13 'table_not_found' => 'La table %s n\'existe pas dans votre base de données.', 14 'not_implemented' => 'La méthode %s que vous avez appelée n\'est pas supportée par le driver de base de données.', 14 15 ); -
trunk/system/libraries/Router.php
r2153 r2171 132 132 self::$directory = APPPATH.'controllers/'; 133 133 self::$controller = self::$rsegments[0]; 134 self::$method = (isset(self::$rsegments[1])) ? self::$rsegments[1] : 'index';135 self::$arguments = (isset(self::$rsegments[2])) ? array_slice(self::$rsegments, 2) : array();134 self::$method = isset(self::$rsegments[1]) ? self::$rsegments[1] : 'index'; 135 self::$arguments = isset(self::$rsegments[2]) ? array_slice(self::$rsegments, 2) : array(); 136 136 } 137 137 else -
trunk/system/libraries/Session.php
r2143 r2171 382 382 return $_SESSION; 383 383 384 $result = (isset($_SESSION[$key])) ? $_SESSION[$key] : Kohana::key_string($key, $_SESSION);384 $result = isset($_SESSION[$key]) ? $_SESSION[$key] : Kohana::key_string($key, $_SESSION); 385 385 386 386 return ($result === NULL) ? $default : $result; -
trunk/system/libraries/drivers/Database/Mysqli.php
r1931 r2171 47 47 48 48 // Build the connection info 49 $host = (isset($host)) ? $host : $socket;49 $host = isset($host) ? $host : $socket; 50 50 51 51 // Make the connection and select the database -
trunk/system/libraries/drivers/Database/Pgsql.php
r2165 r2171 41 41 42 42 // Build the connection info 43 $port = (isset($port)) ? 'port=\''.$port.'\'' : '';44 $host = (isset($host)) ? 'host=\''.$host.'\' '.$port : ''; // if no host, connect with the socket43 $port = isset($port) ? 'port=\''.$port.'\'' : ''; 44 $host = isset($host) ? 'host=\''.$host.'\' '.$port : ''; // if no host, connect with the socket 45 45 46 46 $connection_string = $host.' dbname=\''.$database.'\' user=\''.$user.'\' password=\''.$pass.'\'';
