Changeset 1367
- Timestamp:
- 11/27/08 03:00:14 (6 weeks ago)
- Files:
-
- 1 modified
-
plugins/defensio/trunk/defensio.plugin.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
plugins/defensio/trunk/defensio.plugin.php
r1296 r1367 99 99 $this->defensio = new DefensioAPI( Options::get( 'defensio__api_key' ), Site::get_url( 'habari' ) ); 100 100 $this->load_text_domain( 'defensio' ); 101 $this->add_template( 'defensio', dirname(__FILE__) . '/moderate.php' );102 }103 104 function action_admin_theme_get_spam( $handler, $theme )105 {106 $handler->fetch_comments( array( 'status' => 2, 'limit' => 60 ) );107 $theme->display( 'defensio' );108 exit;109 }110 111 function action_admin_theme_post_spam( $handler, $theme )112 {113 $this->action_admin_theme_get_spam( $handler, $theme );114 101 } 115 102 … … 169 156 ); 170 157 if ( $user instanceof User ) { 171 $params['user-logged-in'] = $user instanceof User;172 // test for administrator, editor, etc. as well173 $params['trusted-user'] = $user instanceof User;158 $params['user-logged-in'] = $user->loggedin; 159 // @todo test for administrator, editor, etc. as well 160 $params['trusted-user'] = $user->loggedin; 174 161 if ( $user->info->openid_url ) { 175 162 $params['openid'] = $user->info->openid_url;
