Use clone() directly instead of wfClone()
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 3 Aug 2008 16:36:45 +0000 (16:36 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 3 Aug 2008 16:36:45 +0000 (16:36 +0000)
includes/Linker.php

index 6761231..cfd7342 100644 (file)
@@ -1235,7 +1235,7 @@ class Linker {
                                if ( $local ) {
                                        $sectionTitle = Title::newFromText( '#' . $section );
                                } else {
-                                       $sectionTitle = wfClone( $title );
+                                       $sectionTitle = clone( $title );
                                        $sectionTitle->mFragment = $section;
                                }
                                $link = $this->link( $sectionTitle,