summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-04-01 11:05:02 +0200
committerAndrey Andreev <narf@devilix.net>2014-04-01 11:05:02 +0200
commit46e216c2be69f0819d97f6bead167f28714e9d70 (patch)
tree914a09ba7abe9162b8ee4b08a07f1b9467133129
parentb749fab66f46176f54ea84b89ca5f5bac3b517a4 (diff)
Optimize #2982
-rw-r--r--system/libraries/Migration.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Migration.php b/system/libraries/Migration.php
index 9185adff1..9af4a8297 100644
--- a/system/libraries/Migration.php
+++ b/system/libraries/Migration.php
@@ -189,7 +189,7 @@ class CI_Migration {
if ($this->_migration_type === 'sequential')
{
- $target_version = str_pad($target_version, 3, '0', STR_PAD_LEFT);
+ $target_version = sprintf('%03d', $target_version);
}
else
{