From ad80790ef251638697274a56cc13755afb2acd49 Mon Sep 17 00:00:00 2001 From: "Ap.Muthu" Date: Sun, 13 Jul 2014 18:25:15 +0530 Subject: [PATCH] Typo Unkown => Unknown --- application/commands/InstallCommand.php | 2 +- application/controllers/InstallerController.php | 2 +- application/controllers/admin/conditionsaction.php | 2 +- application/helpers/common_helper.php | 2 +- application/helpers/update/updatedb_helper.php | 8 ++++---- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/application/commands/InstallCommand.php b/application/commands/InstallCommand.php index 70e27131d96..5fc69344646 100644 --- a/application/commands/InstallCommand.php +++ b/application/commands/InstallCommand.php @@ -52,7 +52,7 @@ public function run($sArgument) $sql_file = 'mssql'; break; default: - throw new Exception(sprintf('Unkown database type "%s".', $this->connection->driverName)); + throw new Exception(sprintf('Unknown database type "%s".', $this->connection->driverName)); } $this->_executeSQLFile(dirname(Yii::app()->basePath).'/installer/sql/create-'.$sql_file.'.sql'); $this->connection->createCommand()->insert($this->connection->tablePrefix.'users', array( diff --git a/application/controllers/InstallerController.php b/application/controllers/InstallerController.php index 864180a7f74..1fcc6c7546a 100644 --- a/application/controllers/InstallerController.php +++ b/application/controllers/InstallerController.php @@ -556,7 +556,7 @@ function stepPopulateDb() $sql_file = 'pgsql'; break; default: - throw new Exception(sprintf('Unkown database type "%s".', $sDatabaseType)); + throw new Exception(sprintf('Unknown database type "%s".', $sDatabaseType)); } //checking DB Connection diff --git a/application/controllers/admin/conditionsaction.php b/application/controllers/admin/conditionsaction.php index dc103f56955..3ebf0833045 100644 --- a/application/controllers/admin/conditionsaction.php +++ b/application/controllers/admin/conditionsaction.php @@ -1473,7 +1473,7 @@ function index($subaction, $iSurveyID=null, $gid=null, $qid=null) } } } - // if $rightOperandType is still unkown then it is a simple constant + // if $rightOperandType is still unknown then it is a simple constant if ($rightOperandType == 'unknown') { $rightOperandType = 'constantVal'; diff --git a/application/helpers/common_helper.php b/application/helpers/common_helper.php index cfd8d4aa1e8..a37da6a04d8 100644 --- a/application/helpers/common_helper.php +++ b/application/helpers/common_helper.php @@ -4760,7 +4760,7 @@ function translateLinks($sType, $iOldSurveyID, $iNewSurveyID, $sString) $replace = Yii::app()->getConfig("publicurl")."upload/labels/{$iNewSurveyID}/"; return preg_replace('#'.$pattern.'#', $replace, $sString); } - else // unkown type + else // unknown type { return $sString; } diff --git a/application/helpers/update/updatedb_helper.php b/application/helpers/update/updatedb_helper.php index bd28e6b5ff5..92d666b62f8 100644 --- a/application/helpers/update/updatedb_helper.php +++ b/application/helpers/update/updatedb_helper.php @@ -231,7 +231,7 @@ function db_upgrade_all($iOldDBVersion) { // copy assessment link to message since from now on we will have HTML assignment messages $oDB->createCommand("UPDATE {{assessments}} set message=replace(message,'/''','''')||'
'||link||''")->execute(); break; - default: die('Unkown database type'); + default: die('Unknown database type'); } // activate assessment where assessment rules exist $oDB->createCommand("UPDATE {{surveys}} SET assessments='Y' where sid in (SELECT sid FROM {{assessments}} group by sid)")->execute(); @@ -1160,7 +1160,7 @@ function db_upgrade_all($iOldDBVersion) { case 'pgsql': addColumn('{{sessions}}', 'data', 'BYTEA'); break; - default: die('Unkown database type'); + default: die('Unknown database type'); } $oDB->createCommand()->update('{{settings_global}}',array('stg_value'=>171),"stg_name='DBVersion'"); } @@ -2054,7 +2054,7 @@ function dropPrimaryKey($sTablename) Yii::app()->db->createCommand($sQuery)->execute(); } break; - default: die('Unkown database type'); + default: die('Unknown database type'); } // find out the constraint name of the old primary key @@ -2127,7 +2127,7 @@ function alterColumn($sTable, $sColumn, $sFieldType, $bAllowNull=true, $sDefault } Yii::app()->db->createCommand()->alterColumn($sTable,$sColumn,$sType); break; - default: die('Unkown database type'); + default: die('Unknown database type'); } }