summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Sturgeon <email@philsturgeon.co.uk>2012-06-19 22:30:47 +0200
committerPhil Sturgeon <email@philsturgeon.co.uk>2012-06-19 22:30:47 +0200
commitaf6d85088d54ed35f7c36ed010384ff7592f8959 (patch)
treee3c9c316506ffb620a442c2cea6a4a138cf464c4
parentf419afe77bdcad787ab28db4d4be05f8f7bd869b (diff)
Fixed Migrations and an incorrect strict comparison.
-rw-r--r--system/language/english/migration_lang.php2
-rw-r--r--system/libraries/Migration.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/system/language/english/migration_lang.php b/system/language/english/migration_lang.php
index 9e3e18807..af920660c 100644
--- a/system/language/english/migration_lang.php
+++ b/system/language/english/migration_lang.php
@@ -26,7 +26,7 @@
*/
$lang['migration_none_found'] = "No migrations were found.";
-$lang['migration_not_found'] = "This migration could not be found.";
+$lang['migration_not_found'] = "No migration could be found with the version number: %d.";
$lang['migration_multiple_version'] = "This are multiple migrations with the same version number: %d.";
$lang['migration_class_doesnt_exist'] = "The migration class \"%s\" could not be found.";
$lang['migration_missing_up_method'] = "The migration class \"%s\" is missing an 'up' method.";
diff --git a/system/libraries/Migration.php b/system/libraries/Migration.php
index 4391b235d..3a1e7a0ad 100644
--- a/system/libraries/Migration.php
+++ b/system/libraries/Migration.php
@@ -179,7 +179,7 @@ class CI_Migration {
// We now prepare to actually DO the migrations
// But first let's make sure that everything is the way it should be
- for ($i = $start; $i !== $stop; $i += $step)
+ for ($i = $start; $i != $stop; $i += $step)
{
$f = glob(sprintf($this->_migration_path.'%03d_*.php', $i));