Skip to content

Commit

Permalink
Typo Unkown => Unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
apmuthu committed Jul 13, 2014
1 parent ba1c4fe commit ad80790
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion application/commands/InstallCommand.php
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/InstallerController.php
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/admin/conditionsaction.php
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion application/helpers/common_helper.php
Expand Up @@ -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;
}
Expand Down
8 changes: 4 additions & 4 deletions application/helpers/update/updatedb_helper.php
Expand Up @@ -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,'/''','''')||'<br /><a href=\"'||link||'\">'||link||'</a>'")->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();
Expand Down Expand Up @@ -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'");
}
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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');
}

}
Expand Down

0 comments on commit ad80790

Please sign in to comment.