Author: david
Date: Wed May  2 16:45:36 2012
New Revision: 11592

Log:
Fix typos and formatting

Modified:
   trunk/lib/task/migrate/arUpgradeSqlTask.class.php

Modified: trunk/lib/task/migrate/arUpgradeSqlTask.class.php
==============================================================================
--- trunk/lib/task/migrate/arUpgradeSqlTask.class.php   Wed May  2 16:40:38 
2012        (r11591)
+++ trunk/lib/task/migrate/arUpgradeSqlTask.class.php   Wed May  2 16:45:36 
2012        (r11592)
@@ -62,7 +62,7 @@
    */
   protected function execute($arguments = array(), $options = array())
   {
-    $this->getInitalVersion();
+    $this->getInitialVersion();
 
     // Use old migration script for versions before 75
     if (null == $this->initialVersion || 75 > $this->initialVersion)
@@ -77,23 +77,25 @@
     if (!$options['no-confirmation']
       &&
       !$this->askConfirmation(array(
-          'WARNING: This upgrade can not be undone.'.
-          "\n\n".
-          'Are you sure you want to proceed? (y/N)',
+          'WARNING: This data upgrade can not be undone!',
+          '',
+          'Are you sure you want to proceed? (y/N)'
         ), 'QUESTION_LARGE', false)
     )
     {
-      $this->logSection('upgrade-sql', 'Ugrade aborted!');
+      $this->logSection('upgrade-sql', 'Upgrade aborted.');
 
       return 1;
     }
 
+    $this->logSection('upgrade-sql', 'Go gadget upgrade!');
+
     // TODO Version 75 check
     // TODO Dump database
     // TODO Do upgrade
   }
 
-  protected function getInitialVersion
+  protected function getInitialVersion()
   {
     $sql = 'SELECT value AS version
       FROM setting JOIN setting_i18n ON setting.id = setting_i18n.id

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to