Skip to content

Commit

Permalink
Fix a lang key typo
Browse files Browse the repository at this point in the history
  • Loading branch information
narfbg committed Nov 6, 2012
1 parent 083e3c8 commit 8d3afde
Show file tree
Hide file tree
Showing 19 changed files with 31 additions and 31 deletions.
2 changes: 1 addition & 1 deletion contributing.md
Expand Up @@ -89,4 +89,4 @@ If you are using command-line you can do the following:
2. `git pull codeigniter develop`
3. `git push origin develop`

Now your fork is up to date. This should be done regularly, or before you send a pull request at least.
Now your fork is up to date. This should be done regularly, or before you send a pull request at least.
16 changes: 8 additions & 8 deletions system/database/DB_forge.php
Expand Up @@ -171,7 +171,7 @@ public function create_database($db_name)
{
if ($this->_create_database === FALSE)
{
return ($this->db->db_debug) ? $this->db->display_error('db_unsuported_feature') : FALSE;
return ($this->db->db_debug) ? $this->db->display_error('db_unsupported_feature') : FALSE;
}
elseif ( ! $this->db->query(sprintf($this->_create_database, $db_name, $this->db->char_set, $this->db->dbcollat)))
{
Expand Down Expand Up @@ -203,7 +203,7 @@ public function drop_database($db_name)
}
elseif ($this->_drop_database === FALSE)
{
return ($this->db->db_debug) ? $this->db->display_error('db_unsuported_feature') : FALSE;
return ($this->db->db_debug) ? $this->db->display_error('db_unsupported_feature') : FALSE;
}
elseif ( ! $this->db->query(sprintf($this->_drop_database, $db_name)))
{
Expand Down Expand Up @@ -339,7 +339,7 @@ public function create_table($table = '', $if_not_exists = FALSE)
$this->_reset();
if ($sql === FALSE)
{
return ($this->db->db_debug) ? $this->db->display_error('db_unsuported_feature') : FALSE;
return ($this->db->db_debug) ? $this->db->display_error('db_unsupported_feature') : FALSE;
}
}

Expand Down Expand Up @@ -434,7 +434,7 @@ public function drop_table($table_name, $if_exists = FALSE)
$query = $this->_drop_table($this->db->dbprefix.$table_name, $if_exists);
if ($query === FALSE)
{
return ($this->db->db_debug) ? $this->db->display_error('db_unsuported_feature') : FALSE;
return ($this->db->db_debug) ? $this->db->display_error('db_unsupported_feature') : FALSE;
}
elseif ($query === TRUE)
{
Expand Down Expand Up @@ -507,7 +507,7 @@ public function rename_table($table_name, $new_table_name)
}
elseif ($this->_rename_table === FALSE)
{
return ($this->db->db_debug) ? $this->db->display_error('db_unsuported_feature') : FALSE;
return ($this->db->db_debug) ? $this->db->display_error('db_unsupported_feature') : FALSE;
}

$result = $this->db->query(sprintf($this->_rename_table,
Expand Down Expand Up @@ -558,7 +558,7 @@ public function add_column($table = '', $field = array())
$this->_reset();
if ($sqls === FALSE)
{
return ($this->db->db_debug) ? $this->db->display_error('db_unsuported_feature') : FALSE;
return ($this->db->db_debug) ? $this->db->display_error('db_unsupported_feature') : FALSE;
}

for ($i = 0, $c = count($sqls); $i < $c; $i++)
Expand Down Expand Up @@ -596,7 +596,7 @@ public function drop_column($table = '', $column_name = '')
$sql = $this->_alter_table('DROP', $this->db->dbprefix.$table, $column_name);
if ($sql === FALSE)
{
return ($this->db->db_debug) ? $this->db->display_error('db_unsuported_feature') : FALSE;
return ($this->db->db_debug) ? $this->db->display_error('db_unsupported_feature') : FALSE;
}

return $this->db->query($sql);
Expand Down Expand Up @@ -638,7 +638,7 @@ public function modify_column($table = '', $field = array())
$this->_reset();
if ($sqls === FALSE)
{
return ($this->db->db_debug) ? $this->db->display_error('db_unsuported_feature') : FALSE;
return ($this->db->db_debug) ? $this->db->display_error('db_unsupported_feature') : FALSE;
}

for ($i = 0, $c = count($sqls); $i < $c; $i++)
Expand Down
10 changes: 5 additions & 5 deletions system/database/DB_utility.php
Expand Up @@ -95,7 +95,7 @@ public function list_databases()
}
elseif ($this->_list_databases === FALSE)
{
return ($this->db->db_debug) ? $this->db->display_error('db_unsuported_feature') : FALSE;
return ($this->db->db_debug) ? $this->db->display_error('db_unsupported_feature') : FALSE;
}

$this->db->data_cache['db_names'] = array();
Expand Down Expand Up @@ -139,7 +139,7 @@ public function optimize_table($table_name)
{
if ($this->_optimize_table === FALSE)
{
return ($this->db->db_debug) ? $this->db->display_error('db_unsuported_feature') : FALSE;
return ($this->db->db_debug) ? $this->db->display_error('db_unsupported_feature') : FALSE;
}

$query = $this->db->query(sprintf($this->_optimize_table, $this->db->escape_identifiers($table_name)));
Expand All @@ -163,7 +163,7 @@ public function optimize_database()
{
if ($this->_optimize_table === FALSE)
{
return ($this->db->db_debug) ? $this->db->display_error('db_unsuported_feature') : FALSE;
return ($this->db->db_debug) ? $this->db->display_error('db_unsupported_feature') : FALSE;
}

$result = array();
Expand Down Expand Up @@ -200,7 +200,7 @@ public function repair_table($table_name)
{
if ($this->_repair_table === FALSE)
{
return ($this->db->db_debug) ? $this->db->display_error('db_unsuported_feature') : FALSE;
return ($this->db->db_debug) ? $this->db->display_error('db_unsupported_feature') : FALSE;
}

$query = $this->db->query(sprintf($this->_repair_table, $this->db->escape_identifiers($table_name)));
Expand Down Expand Up @@ -361,7 +361,7 @@ public function backup($params = array())
{
if ($this->db->db_debug)
{
return $this->db->display_error('db_unsuported_compression');
return $this->db->display_error('db_unsupported_compression');
}

$prefs['format'] = 'txt';
Expand Down
2 changes: 1 addition & 1 deletion system/database/drivers/cubrid/cubrid_utility.php
Expand Up @@ -63,7 +63,7 @@ protected function _backup($params = array())
// No SQL based support in CUBRID as of version 8.4.0. Database or
// table backup can be performed using CUBRID Manager
// database administration tool.
return $this->db->display_error('db_unsuported_feature');
return $this->db->display_error('db_unsupported_feature');
}
}

Expand Down
2 changes: 1 addition & 1 deletion system/database/drivers/mssql/mssql_driver.php
Expand Up @@ -506,7 +506,7 @@ protected function _insert_batch($table, $keys, $values)
return parent::_insert_batch($table, $keys, $values);
}

return ($this->db->db_debug) ? $this->db->display_error('db_unsuported_feature') : FALSE;
return ($this->db->db_debug) ? $this->db->display_error('db_unsupported_feature') : FALSE;
}

// --------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion system/database/drivers/mssql/mssql_utility.php
Expand Up @@ -58,7 +58,7 @@ class CI_DB_mssql_utility extends CI_DB_utility {
protected function _backup($params = array())
{
// Currently unsupported
return $this->db->display_error('db_unsuported_feature');
return $this->db->display_error('db_unsupported_feature');
}

}
Expand Down
2 changes: 1 addition & 1 deletion system/database/drivers/oci8/oci8_utility.php
Expand Up @@ -51,7 +51,7 @@ class CI_DB_oci8_utility extends CI_DB_utility {
protected function _backup($params = array())
{
// Currently unsupported
return $this->db->display_error('db_unsuported_feature');
return $this->db->display_error('db_unsupported_feature');
}

}
Expand Down
2 changes: 1 addition & 1 deletion system/database/drivers/odbc/odbc_driver.php
Expand Up @@ -250,7 +250,7 @@ public function affected_rows()
*/
public function insert_id()
{
return ($this->db->db_debug) ? $this->db->display_error('db_unsuported_feature') : FALSE;
return ($this->db->db_debug) ? $this->db->display_error('db_unsupported_feature') : FALSE;
}

// --------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion system/database/drivers/odbc/odbc_utility.php
Expand Up @@ -44,7 +44,7 @@ class CI_DB_odbc_utility extends CI_DB_utility {
protected function _backup($params = array())
{
// Currently unsupported
return $this->db->display_error('db_unsuported_feature');
return $this->db->display_error('db_unsupported_feature');
}

}
Expand Down
2 changes: 1 addition & 1 deletion system/database/drivers/pdo/pdo_result.php
Expand Up @@ -163,7 +163,7 @@ public function field_data()
{
if ($this->db->db_debug)
{
return $this->db->display_error('db_unsuported_feature');
return $this->db->display_error('db_unsupported_feature');
}

return FALSE;
Expand Down
2 changes: 1 addition & 1 deletion system/database/drivers/pdo/pdo_utility.php
Expand Up @@ -44,7 +44,7 @@ class CI_DB_pdo_utility extends CI_DB_utility {
protected function _backup($params = array())
{
// Currently unsupported
return $this->db->display_error('db_unsuported_feature');
return $this->db->display_error('db_unsupported_feature');
}

}
Expand Down
Expand Up @@ -282,7 +282,7 @@ protected function _insert_batch($table, $keys, $values)
return parent::_insert_batch($table, $keys, $values);
}

return ($this->db->db_debug) ? $this->db->display_error('db_unsuported_feature') : FALSE;
return ($this->db->db_debug) ? $this->db->display_error('db_unsupported_feature') : FALSE;
}

}
Expand Down
Expand Up @@ -316,7 +316,7 @@ protected function _insert_batch($table, $keys, $values)
return parent::_insert_batch($table, $keys, $values);
}

return ($this->db->db_debug) ? $this->db->display_error('db_unsuported_feature') : FALSE;
return ($this->db->db_debug) ? $this->db->display_error('db_unsupported_feature') : FALSE;
}

}
Expand Down
2 changes: 1 addition & 1 deletion system/database/drivers/postgre/postgre_utility.php
Expand Up @@ -60,7 +60,7 @@ class CI_DB_postgre_utility extends CI_DB_utility {
protected function _backup($params = array())
{
// Currently unsupported
return $this->db->display_error('db_unsuported_feature');
return $this->db->display_error('db_unsupported_feature');
}
}

Expand Down
2 changes: 1 addition & 1 deletion system/database/drivers/sqlite/sqlite_utility.php
Expand Up @@ -44,7 +44,7 @@ class CI_DB_sqlite_utility extends CI_DB_utility {
protected function _backup($params = array())
{
// Currently unsupported
return $this->db->display_error('db_unsuported_feature');
return $this->db->display_error('db_unsupported_feature');
}

}
Expand Down
2 changes: 1 addition & 1 deletion system/database/drivers/sqlite3/sqlite3_utility.php
Expand Up @@ -44,7 +44,7 @@ class CI_DB_sqlite3_utility extends CI_DB_utility {
protected function _backup($params = array())
{
// Not supported
return $this->db->display_error('db_unsuported_feature');
return $this->db->display_error('db_unsupported_feature');
}

}
Expand Down
2 changes: 1 addition & 1 deletion system/database/drivers/sqlsrv/sqlsrv_driver.php
Expand Up @@ -513,7 +513,7 @@ protected function _insert_batch($table, $keys, $values)
return parent::_insert_batch($table, $keys, $values);
}

return ($this->db->db_debug) ? $this->db->display_error('db_unsuported_feature') : FALSE;
return ($this->db->db_debug) ? $this->db->display_error('db_unsupported_feature') : FALSE;
}

// --------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion system/database/drivers/sqlsrv/sqlsrv_utility.php
Expand Up @@ -60,7 +60,7 @@ class CI_DB_sqlsrv_utility extends CI_DB_utility {
protected function _backup($params = array())
{
// Currently unsupported
return $this->db->display_error('db_unsuported_feature');
return $this->db->display_error('db_unsupported_feature');
}

}
Expand Down
4 changes: 2 additions & 2 deletions system/language/english/db_lang.php
Expand Up @@ -41,8 +41,8 @@
$lang['db_unsupported_function'] = 'This feature is not available for the database you are using.';
$lang['db_transaction_failure'] = 'Transaction failure: Rollback performed.';
$lang['db_unable_to_drop'] = 'Unable to drop the specified database.';
$lang['db_unsuported_feature'] = 'Unsupported feature of the database platform you are using.';
$lang['db_unsuported_compression'] = 'The file compression format you chose is not supported by your server.';
$lang['db_unsupported_feature'] = 'Unsupported feature of the database platform you are using.';
$lang['db_unsupported_compression'] = 'The file compression format you chose is not supported by your server.';
$lang['db_filepath_error'] = 'Unable to write data to the file path you have submitted.';
$lang['db_invalid_cache_path'] = 'The cache path you submitted is not valid or writable.';
$lang['db_table_name_required'] = 'A table name is required for that operation.';
Expand Down

0 comments on commit 8d3afde

Please sign in to comment.