Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -1725,9 +1725,9 @@ |
1726 | 1726 | $this->addInlineScript( $wgRequest->getText( 'wpTextbox1' ) ); |
1727 | 1727 | } else { |
1728 | 1728 | $userpage = $wgUser->getUserPage(); |
1729 | | - $scriptpage = Title::newFromText( |
1730 | | - $userpage->getNamespace(), |
1731 | | - $userpage->getPrefixedText() . '/' . $sk->getSkinName() . '.js' |
| 1729 | + $scriptpage = Title::makeTitleSafe( |
| 1730 | + NS_USER, |
| 1731 | + $userpage->getDBkey() . '/' . $sk->getSkinName() . '.js' |
1732 | 1732 | ); |
1733 | 1733 | if ( $scriptpage && $scriptpage->exists() ) { |
1734 | 1734 | $userjs = Skin::makeUrl( $scriptpage->getPrefixedText(), 'action=raw&ctype=' . $wgJsMimeType ); |