* replace deprecated makeBrokenLinkObj() by LinkHolderArray.php()
[lhc/web/wiklou.git] / includes / QueryPage.php
index af96746..86a988e 100644 (file)
@@ -549,7 +549,7 @@ abstract class WantedQueryPage extends QueryPage {
        function isSyndicated() {
                return false;
        }
-       
+
        /**
         * Cache page existence for performance
         */
@@ -578,9 +578,21 @@ abstract class WantedQueryPage extends QueryPage {
                        if( $this->isCached() ) {
                                $pageLink = $title->exists()
                                        ? '<s>' . $skin->link( $title ) . '</s>'
-                                       : $skin->makeBrokenLinkObj( $title );
+                                       : $skin->link(
+                                               $title,
+                                               null,
+                                               array(),
+                                               array(),
+                                               array( 'broken' )
+                                       );
                        } else {
-                               $pageLink = $skin->makeBrokenLinkObj( $title );
+                               $pageLink = $skin->link(
+                                       $title,
+                                       null,
+                                       array(),
+                                       array(),
+                                       array( 'broken' )
+                               );
                        }
                        return wfSpecialList( $pageLink, $this->makeWlhLink( $title, $skin, $result ) );
                } else {