Changeset 2846
- Timestamp:
- 07/28/08 02:46:54 (4 months ago)
- Files:
-
- branches/release-42/default_templates/javascript.mtml (modified) (2 diffs)
- branches/release-42/lib/MT/App.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/release-42/default_templates/javascript.mtml
r2795 r2846 235 235 if (u.url) str += "url:'" + mtEscapeJS(u.url) + "';"; 236 236 if (u.email) str += "email:'" + mtEscapeJS(u.email) + "';"; 237 if (u.auth_type) str += "auth_type:'" + u.auth_type + "';";238 237 if (u.is_authenticated) str += "is_authenticated:'1';"; 239 238 if (u.profile) str += "profile:'" + mtEscapeJS(u.profile) + "';"; … … 260 259 var u = {}; 261 260 var m; 262 while (m = s.match(/^((name|url|email| auth_type|is_authenticated|profile|userpic|sid|is_trusted|is_author|is_banned|can_post|can_comment):'([^']+?)';?)/)) {261 while (m = s.match(/^((name|url|email|is_authenticated|profile|userpic|sid|is_trusted|is_author|is_banned|can_post|can_comment):'([^']+?)';?)/)) { 263 262 s = s.substring(m[1].length); 264 263 if (m[2].match(/^(is|can)_/)) // boolean fields branches/release-42/lib/MT/App.pm
r2827 r2846 993 993 userpic => scalar $commenter->userpic_url, 994 994 profile => "", # profile link url 995 auth_type => ($commenter->auth_type eq 'MT' ? "1" : "0"),996 995 is_authenticated => "1", 997 996 is_trusted => ($commenter->is_trusted($blog_id) ? "1" : "0"), … … 1163 1162 1164 1163 my $timeout; 1165 if ( $user-> auth_type eq 'MT') {1164 if ( $user->type == MT::Author::AUTHOR() ) { 1166 1165 if ($app->param('remember')) { 1167 1166 # 10 years, same as app sign-in 'remember me'
