equal
deleted
inserted
replaced
510 { |
510 { |
511 global $db, $session, $paths, $template, $plugins; // Common objects |
511 global $db, $session, $paths, $template, $plugins; // Common objects |
512 global $lang; |
512 global $lang; |
513 |
513 |
514 $pname = $paths->nslist[$namespace] . $page_id; |
514 $pname = $paths->nslist[$namespace] . $page_id; |
|
515 $template->init_vars(); |
515 |
516 |
516 ob_start(); |
517 ob_start(); |
517 |
518 |
518 if($action && $session->get_permissions('mod_comments')) // Nip hacking attempts in the bud |
519 if($action && $session->get_permissions('mod_comments')) // Nip hacking attempts in the bud |
519 { |
520 { |
740 </table> |
741 </table> |
741 </form> |
742 </form> |
742 </div>'; |
743 </div>'; |
743 } |
744 } |
744 } else { |
745 } else { |
745 $_ob .= '<h3>Got something to say?</h3><p>You need to be logged in to post comments. <a href="'.makeUrlNS('Special', 'Login/' . $pname . '%2523comments').'">Log in</a></p>'; |
746 // FIXME: l10n |
|
747 $_ob .= '<h3>' . $lang->get('comment_postform_title') . '</h3><p>You need to be logged in to post comments. <a href="'.makeUrlNS('Special', 'Login/' . $pname . '%2523comments').'">Log in</a></p>'; |
746 } |
748 } |
747 $list .= '};'; |
749 $list .= '};'; |
748 echo 'document.getElementById(\'ajaxEditContainer\').innerHTML = unescape(\''. rawurlencode($_ob) .'\'); |
750 echo 'document.getElementById(\'ajaxEditContainer\').innerHTML = unescape(\''. rawurlencode($_ob) .'\'); |
749 ' . $list; |
751 ' . $list; |
750 echo 'Fat.fade_all(); document.getElementById(\'mdgCommentForm\').style.display = \'none\'; document.getElementById(\'mdgCommentFormLink\').style.display="inline";'; |
752 echo 'Fat.fade_all(); document.getElementById(\'mdgCommentForm\').style.display = \'none\'; document.getElementById(\'mdgCommentFormLink\').style.display="inline";'; |