Merge "Log when resyncFiles() fails in FileBackendMultiWrite"
[lhc/web/wiklou.git] / includes / parser / Parser.php
index 8209ea9..a1d62e5 100644 (file)
@@ -739,8 +739,7 @@ class Parser {
 
                if ( $t->hasFragment() ) {
                        # Strip the fragment to avoid various odd effects
-                       $this->mTitle = clone $t;
-                       $this->mTitle->setFragment( '' );
+                       $this->mTitle = $t->createFragmentTarget( '' );
                } else {
                        $this->mTitle = $t;
                }