From f3c0f40446077b91440cb67a3442b23f2d2036b4 Mon Sep 17 00:00:00 2001 From: "godzilla80@gmx.net" <> Date: Sun, 26 Apr 2009 06:22:19 +0000 Subject: Fixed Issue #146 - replace deprecated(php5.3>) split with explode in TPgsqlMetaData:getPrimaryKeys(), PradoBase::getUserLanguages() --- framework/Data/Common/Pgsql/TPgsqlMetaData.php | 4 ++-- framework/PradoBase.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'framework') diff --git a/framework/Data/Common/Pgsql/TPgsqlMetaData.php b/framework/Data/Common/Pgsql/TPgsqlMetaData.php index a2243531..3ab872a5 100644 --- a/framework/Data/Common/Pgsql/TPgsqlMetaData.php +++ b/framework/Data/Common/Pgsql/TPgsqlMetaData.php @@ -330,7 +330,7 @@ EOD; */ protected function getPrimaryKeys($tableName, $schemaName, $columnIndex) { - $index = join(', ', split(' ', $columnIndex)); + $index = join(', ', explode(' ', $columnIndex)); $sql = <<getDbConnection()->createCommand($sql); $command->bindValue(':table', $tableName); $command->bindValue(':schema', $schemaName); -// $command->bindValue(':columnIndex', join(', ', split(' ', $columnIndex))); +// $command->bindValue(':columnIndex', join(', ', explode(' ', $columnIndex))); $primary = array(); foreach($command->query() as $row) { diff --git a/framework/PradoBase.php b/framework/PradoBase.php index c2d73b16..17f7b53c 100644 --- a/framework/PradoBase.php +++ b/framework/PradoBase.php @@ -448,7 +448,7 @@ class PradoBase $languages=array(); foreach(explode(',',$_SERVER['HTTP_ACCEPT_LANGUAGE']) as $language) { - $array=split(';q=',trim($language)); + $array=explode(';q=',trim($language)); $languages[trim($array[0])]=isset($array[1])?(float)$array[1]:1.0; } arsort($languages); -- cgit v1.2.3