]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Removed silly check for elgg version.
authorBrett Profitt <brett.profitt@gmail.com>
Thu, 25 Aug 2011 17:39:22 +0000 (10:39 -0700)
committerBrett Profitt <brett.profitt@gmail.com>
Thu, 25 Aug 2011 17:39:22 +0000 (10:39 -0700)
mod/blog/start.php

index d00196bfda6936600023a7c8586c4a47feb07067..a92f5cf855ad0a57507eec0ad2f6e474421ab991 100644 (file)
@@ -238,24 +238,22 @@ function blog_run_upgrades($event, $type, $details) {
                }
 
                // only run this on the first migration to 1.8
-               if ($details->to >= 2011061200) {
-                       // add excerpt to all blogs that don't have it.
-                       $ia = elgg_set_ignore_access(true);
-                       $options = array(
-                               'type' => 'object',
-                               'subtype' => 'blog'
-                       );
-
-                       $blogs = new ElggBatch($options);
-                       foreach ($blogs as $blog) {
-                               if (!$blog->excerpt) {
-                                       $blog->excerpt = elgg_get_excerpt($blog->description);
-                               }
-                       }
+               // add excerpt to all blogs that don't have it.
+               $ia = elgg_set_ignore_access(true);
+               $options = array(
+                       'type' => 'object',
+                       'subtype' => 'blog'
+               );
 
-                       elgg_set_ignore_access($ia);
+               $blogs = new ElggBatch($options);
+               foreach ($blogs as $blog) {
+                       if (!$blog->excerpt) {
+                               $blog->excerpt = elgg_get_excerpt($blog->description);
+                       }
                }
 
+               elgg_set_ignore_access($ia);
+
                elgg_set_plugin_setting('upgrade_version', 1, 'blogs');
        }
 }