Extension talk:BugSquish

From mediawiki.org
Jump to navigation Jump to search

I've done a related extension to show a milestone progressbar like in Trac: http://www.mediawiki.org/wiki/Extension:BugMilestone

There's a bug also, you should set the newlink parameter to true in the mysql_connect function, so that it doesn't break mediawiki in the case the user/pass are the same for mediawiki and bugzilla.

-- BertrandGorge

Good spot, although I don't think it breaks MediaWiki at all (it works fine for me), however re-using existing connections is more efficient so I've implemented that change. I've also removed the mysql_close() call, as it will be common for this to be called many times on a single page (when there are many bug links) and this stops us having to re-connect for each one. We can rely on the connection being automatically closed at the end of the script. --HappyDog 12:52, 6 March 2009 (UTC)