]> git.mjollnir.org Git - moodle.git/commitdiff
blog MDL-19792 Upgraded two deprecate functions
authorsamhemelryk <samhemelryk>
Fri, 16 Oct 2009 03:10:33 +0000 (03:10 +0000)
committersamhemelryk <samhemelryk>
Fri, 16 Oct 2009 03:10:33 +0000 (03:10 +0000)
blog/edit.php
blog/lib.php

index e7ecd285f71b5074fa6643ccea69a0e592ac6e1a..d5c53ce294f645ccd668b68c6bde2bab48bcd3ed 100755 (executable)
@@ -49,7 +49,7 @@ if (empty($CFG->bloglevel)) {
     print_error('blogdisable', 'blog');
 }
 
-if (isguest()) {
+if (isguestuser()) {
     print_error('noguestentry', 'blog');
 }
 
index 1d9be1962ec0ddca4fefbe22f583239990938bb3..dec06f457d5aa7b8a6448a2fbb9ebf18aebceac7 100755 (executable)
@@ -47,7 +47,7 @@ define('BLOG_PUBLISHSTATE_PUBLIC', 2);
 function blog_check_and_install_blocks() {
     global $USER, $DB;
 
-    if (isloggedin() && !isguest()) {
+    if (isloggedin() && !isguestuser()) {
         // if this user has not visited this page before
         if (!get_user_preferences('blogpagesize')) {
             // find the correct ids for blog_menu and blog_from blocks