(bug 16025) 'Call to undefined method SimpleCaptcha::showImage()'
[toast/cookiecaptcha.git] / ConfirmEdit_body.php
index 2e7fd048304da42aac10cc38b062edb7b933674e..00bea4c32d11dc8d04600a0fdc8d40cf1f4083a6 100644 (file)
@@ -54,7 +54,8 @@ class CaptchaSpecialPage extends UnlistedSpecialPage {
                $instance = ConfirmEditHooks::getInstance();
                switch( $par ) {
                case "image":
-                       return $instance->showImage();
+                       if( method_exists($instance,'showImage') )
+                               return $instance->showImage();
                case "help":
                default:
                        return $instance->showHelp();