diff --git a/includes/Hooks.php b/includes/Hooks.php index 51850ea..165ba56 100755 --- a/includes/Hooks.php +++ b/includes/Hooks.php @@ -74,10 +74,10 @@ class Hooks { if ($slugText !== $absoluteSlug) { $newTitle = Title::newFromText($absoluteSlug, $title->getNamespace()); - } - if ($newTitle) { - $title = $newTitle; + if ($newTitle) { + $title = $newTitle; + } } } }