Author: jablko
Date: Tue Oct 26 10:07:34 2010
New Revision: 8508

Log:
Migrate "home" and "about" links

Modified:
   trunk/data/fixtures/settings.yml
   trunk/lib/task/migrate/QubitMigrate109.class.php

Modified: trunk/data/fixtures/settings.yml
==============================================================================
--- trunk/data/fixtures/settings.yml    Tue Oct 26 10:01:01 2010        (r8507)
+++ trunk/data/fixtures/settings.yml    Tue Oct 26 10:07:34 2010        (r8508)
@@ -3,7 +3,7 @@
     name: version
     editable: 0
     deleteable: 0
-    value: 55
+    value: 56
   QubitSetting_2:
     name: upload_dir
     editable: 0

Modified: trunk/lib/task/migrate/QubitMigrate109.class.php
==============================================================================
--- trunk/lib/task/migrate/QubitMigrate109.class.php    Tue Oct 26 10:01:01 
2010        (r8507)
+++ trunk/lib/task/migrate/QubitMigrate109.class.php    Tue Oct 26 10:07:34 
2010        (r8508)
@@ -89,10 +89,32 @@
           if (isset($value['permalink']))
           {
             $this->data['QubitStaticPage'][$key]['slug'] = $value['permalink'];
+            if ('homepage' == $value['permalink'])
+            {
+              $this->data['QubitStaticPage'][$key]['slug'] = 'home';
+            }
 
             unset($this->data['QubitStaticPage'][$key]['permalink']);
           }
         }
+
+      case 55:
+
+        foreach ($this->data['QubitMenu'] as $key => $value)
+        {
+          switch ($value['path'])
+          {
+            case 'staticpage/static?permalink=about':
+              $this->data['QubitMenu'][$key]['path'] = 
'staticpage/index?slug=about';
+
+              break;
+
+            case 'staticpage/static?permalink=homepage':
+              $this->data['QubitMenu'][$key]['path'] = '@homepage';
+
+              break;
+          }
+        }
     }
 
     // Delete "stub" objects

-- 
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