wfProfileIn( $fname );
$siteNotice = '';
$loggedIn = false;
- $spTitle = SpecialPage::getTitleFor('DismissNotice');
- $spUrl = $spTitle->getFullURL( array( 'returnto' => $wgTitle->getPrefixedURL() ) );
+ $spTitle = SpecialPage::getTitleFor( 'DismissNotice' );
+ $spUrl = $spTitle->escapeFullURL( array( 'returnto' => $wgTitle->getPrefixedURL() ) );
if( $wgUser instanceOf User && $wgUser->isLoggedIn() ) {
$loggedIn = true;
* Get an object referring to a locally registered file.
* Returns a valid placeholder object if the file does not exist.
*/
-function wfLocalFile( $title ) {
- return RepoGroup::singleton()->getLocalRepo()->newFile( $title );
+function wfLocalFile( $title, $time = false ) {
+ return RepoGroup::singleton()->getLocalRepo()->findFile( $title, $time );
}
/**