Thread:Project:Support desk/SkinMonoBook::getTitle() in MW 1.15 ?

In an extension I use the  hook.

Inside that I use the condition.

Works fine in MW 1.16+, but in MW 1.15 (and earlier?) it returns the error "Call to undefined method SkinMonoBook::getTitle". How can it be fixed to work in old and new MW versions?