From: samhemelryk Date: Fri, 16 Oct 2009 03:10:33 +0000 (+0000) Subject: blog MDL-19792 Upgraded two deprecate functions X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ec7c4f112be8d2245ac29efa826f51668dc5832a;p=moodle.git blog MDL-19792 Upgraded two deprecate functions --- diff --git a/blog/edit.php b/blog/edit.php index e7ecd285f7..d5c53ce294 100755 --- a/blog/edit.php +++ b/blog/edit.php @@ -49,7 +49,7 @@ if (empty($CFG->bloglevel)) { print_error('blogdisable', 'blog'); } -if (isguest()) { +if (isguestuser()) { print_error('noguestentry', 'blog'); } diff --git a/blog/lib.php b/blog/lib.php index 1d9be1962e..dec06f457d 100755 --- a/blog/lib.php +++ b/blog/lib.php @@ -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