# HG changeset patch # User Dan # Date 1205608782 14400 # Node ID f50742368f907ec3f62098c79fa6fd9b42656df6 # Parent a050ff3d4509654211d6c1887f612e2fcca5dc45 Fixed a few bugs. diff -r a050ff3d4509 -r f50742368f90 plugins/nuggie/postbit.php --- a/plugins/nuggie/postbit.php Fri Feb 01 21:54:00 2008 -0500 +++ b/plugins/nuggie/postbit.php Sat Mar 15 15:19:42 2008 -0400 @@ -94,7 +94,10 @@ { global $db, $session, $paths, $template, $plugins; // Common objects - if ( file_exists( ENANO_ROOT . "/themes/{$template->theme_id}/blog_post.tpl" ) ) + if ( empty($template->theme) ) + $template->load_theme(); + + if ( file_exists( ENANO_ROOT . "/themes/{$template->theme}/blog_post.tpl" ) ) { $parser = $template->makeParser('blog_post.tpl'); } @@ -283,7 +286,7 @@ // entire blog, and they'll be inherited unless individual posts have overriding permissions. $perms_blog = $session->fetch_page_acl($row['username'], 'Blog'); $perms = $session->fetch_page_acl("{$row['post_timestamp']}_{$row['post_id']}", 'Blog'); - $perms->perms = $session->acl_merge($perms->perms, $perms_post->perms); + $perms->perms = $session->acl_merge($perms->perms, $perms_blog->perms); unset($perms_blog); if ( $row['blog_type'] == 'private' ) diff -r a050ff3d4509 -r f50742368f90 plugins/nuggie/usercp.php --- a/plugins/nuggie/usercp.php Fri Feb 01 21:54:00 2008 -0500 +++ b/plugins/nuggie/usercp.php Sat Mar 15 15:19:42 2008 -0400 @@ -379,6 +379,7 @@ break; // This is hackish. Really, REALLY hackish. $_SERVER['PATH_INFO'] = '.../' . $paths->nslist['Special'] . 'Preferences/Blog/Write/' . $parms['id']; + $_GET['title'] = $paths->nslist['Special'] . 'Preferences/Blog/Write/' . $parms['id']; nuggie_user_cp('Blog'); return true; break;