fixed hook call
[lhc/web/wiklou.git] / index.php
index 7b61ddf..c808f95 100644 (file)
--- a/index.php
+++ b/index.php
@@ -240,7 +240,7 @@ if( !$wgDisableInternalSearch && !is_null( $search ) && $search !== '' ) {
                                $wgArticle->view();
                                break;
                        default:
-                               if (wfRunHooks('UnknownAction', $action, $wgArticle)) {
+                               if (wfRunHooks('UnknownAction', array($action, $wgArticle))) {
                                        $wgOut->errorpage( 'nosuchaction', 'nosuchactiontext' );
                                }
                }