aboutsummaryrefslogtreecommitdiff
path: root/mod/blog
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2011-08-25 10:39:22 -0700
committerBrett Profitt <brett.profitt@gmail.com>2011-08-25 10:39:22 -0700
commita0d6ee9cb451bcd016a16ff1cc43fdb630786d08 (patch)
tree65fa96922acdafb2b32a1d38b9d00c4a39b5c369 /mod/blog
parent2363de0ba2fa5cbf3037452d6119d614d988efce (diff)
downloadelgg-a0d6ee9cb451bcd016a16ff1cc43fdb630786d08.tar.gz
elgg-a0d6ee9cb451bcd016a16ff1cc43fdb630786d08.tar.bz2
Removed silly check for elgg version.
Diffstat (limited to 'mod/blog')
-rw-r--r--mod/blog/start.php28
1 files changed, 13 insertions, 15 deletions
diff --git a/mod/blog/start.php b/mod/blog/start.php
index d00196bfd..a92f5cf85 100644
--- a/mod/blog/start.php
+++ b/mod/blog/start.php
@@ -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');
}
}