Changeset 2635:ad168cf3085a for inc/public
- Timestamp:
- 01/20/14 12:50:44 (12 years ago)
- Branch:
- default
- Parents:
- 2633:e926dcfd2a59 (diff), 2634:d60876d7e4e4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/public/lib.urlhandlers.php
r2585 r2635 374 374 # Get passwords cookie 375 375 if (isset($_COOKIE['dc_passwd'])) { 376 $pwd_cookie = unserialize($_COOKIE['dc_passwd']); 376 $pwd_cookie = json_decode($_COOKIE['dc_passwd']); 377 if ($pwd_cookie === NULL) { 378 $pwd_cookie = array(); 379 } else { 380 $pwd_cookie = (array) $pwd_cookie; 381 } 377 382 } else { 378 383 $pwd_cookie = array(); … … 384 389 { 385 390 $pwd_cookie[$post_id] = $post_password; 386 setcookie('dc_passwd', serialize($pwd_cookie),0,'/');391 setcookie('dc_passwd',json_encode($pwd_cookie),0,'/'); 387 392 } 388 393 else -
inc/public/lib.urlhandlers.php
r2634 r2635 86 86 $_ctx->nb_entry_per_page = $core->blog->settings->system->nb_post_per_page; 87 87 } 88 if ($_ctx->nb_entry_first_page === null) { 89 $_ctx->nb_entry_first_page = $_ctx->nb_entry_per_page; 90 } 88 91 89 92 $tpl_file = $core->tpl->getFilePath($tpl); … … 188 191 else 189 192 { 193 $_ctx =& $GLOBALS['_ctx']; 190 194 $core =& $GLOBALS['core']; 191 195 … … 196 200 197 201 if (empty($_GET['q'])) { 202 if ($core->blog->settings->system->nb_post_for_home !== null) { 203 $_ctx->nb_entry_first_page = $core->blog->settings->system->nb_post_for_home; 204 } 198 205 self::serveDocument('home.html'); 199 206 $core->blog->publishScheduledEntries(); … … 416 423 if ($content != '') 417 424 { 418 if ($core->blog->settings->system->wiki_comments) { 419 $core->initWikiComment(); 425 # --BEHAVIOR-- publicBeforeCommentTransform 426 $buffer = $core->callBehavior('publicBeforeCommentTransform',$content); 427 if ($buffer != '') { 428 $content = $buffer; 420 429 } else { 421 $core->initWikiSimpleComment(); 430 if ($core->blog->settings->system->wiki_comments) { 431 $core->initWikiComment(); 432 } else { 433 $core->initWikiSimpleComment(); 434 } 435 $content = $core->wikiTransform($content); 422 436 } 423 $content = $core->wikiTransform($content);424 437 $content = $core->HTMLfilter($content); 425 438 }
Note: See TracChangeset
for help on using the changeset viewer.