From: Andrew Garrett Date: Fri, 31 Jul 2009 10:59:11 +0000 (+0000) Subject: LiquidThreads code quality, bug fixes and cleanup: X-Git-Tag: 1.31.0-rc.0~40603 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=854a37a73ab0b901298dabb546e76ba8b012425c;p=lhc%2Fweb%2Fwiklou.git LiquidThreads code quality, bug fixes and cleanup: * Remove large swathes of dead code, hooks that have never existed, and dormant methods. * Remove the TalkpageArchiveView, which has been inaccessible from the UI for ages. * Break most miscellaneous hooks out into their own file, classes/Hooks.php * Float the reply link on the RHS. * Organise the hooks section of LiquidThreads.php somewhat. * Remove deprecated =& syntax in some places. * Move scratchTitle and related methods into Threads class instead of View class. * Kill home-grown revision insertion code from leaveTrace, and rewrite it to use Article::doEdit * Internal documentation, variable naming as appropriate. * Remove special-case handling for links, unnecessary now. * Fix customizeOldChangesList, it looks like it was never properly tested. Even if it had worked, it would have put (not by the author) on every edit to a post. * Fail fast when trying to move a non-toplevel thread. * Add rollback, extra links to the end of new-thread recentchanges entries. --- diff --git a/includes/ChangesList.php b/includes/ChangesList.php index cf6db5b0c5..b51b166f3c 100644 --- a/includes/ChangesList.php +++ b/includes/ChangesList.php @@ -398,7 +398,7 @@ class ChangesList { } /** Inserts a rollback link */ - protected function insertRollback( &$s, &$rc ) { + public function insertRollback( &$s, &$rc ) { global $wgUser; if( !$rc->mAttribs['rc_new'] && $rc->mAttribs['rc_this_oldid'] && $rc->mAttribs['rc_cur_id'] ) { $page = $rc->getTitle(); @@ -418,7 +418,7 @@ class ChangesList { } } - protected function insertTags( &$s, &$rc, &$classes ) { + public function insertTags( &$s, &$rc, &$classes ) { if ( empty($rc->mAttribs['ts_tags']) ) return; @@ -427,7 +427,7 @@ class ChangesList { $s .= ' ' . $tagSummary; } - protected function insertExtra( &$s, &$rc, &$classes ) { + public function insertExtra( &$s, &$rc, &$classes ) { ## Empty, used for subclassers to add anything special. } }