Permalink
Browse files

Merge branch 'w03_MDL-31171_m21_blogattachment' of git://github.com/s…

…kodak/moodle into MOODLE_21_STABLE
  • Loading branch information...
2 parents 42add67 + 41238d8 commit 6acec6c45733df5268ef6224e14e61f9c07aa66e @stronk7 stronk7 committed Jan 17, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 pluginfile.php
View
@@ -85,6 +85,10 @@
print_error('siteblogdisable', 'blog');
}
+ $entryid = (int)array_shift($args);
+ if (!$entry = $DB->get_record('post', array('module'=>'blog', 'id'=>$entryid))) {
+ send_file_not_found();
+ }
if ($CFG->bloglevel < BLOG_GLOBAL_LEVEL) {
require_login();
if (isguestuser()) {
@@ -96,10 +100,6 @@
}
}
}
- $entryid = (int)array_shift($args);
- if (!$entry = $DB->get_record('post', array('module'=>'blog', 'id'=>$entryid))) {
- send_file_not_found();
- }
if ('publishstate' === 'public') {
if ($CFG->forcelogin) {

0 comments on commit 6acec6c

Please sign in to comment.