Thread:Extension talk:SmoothGallery/Error with PHP 5.3+

The following error occurs with SmoothGallery extension and PHP 5.3:

Detected bug in an extension! Hook smoothGalleryParserOutput failed to return a value

This is solved by changing the line in SmoothGallery.php:

function smoothGalleryParserOutput( &$outputPage, &$parserOutput ) {

to:

function smoothGalleryParserOutput( &$outputPage, $parserOutput ) {

Mediawiki specifies that the second parameter is not a reference, and when it was one, it broke the hook completely.