Tweak r41788 - Use findFile() to check current version if $time given
[lhc/web/wiklou.git] / includes / GlobalFunctions.php
index 6610738..0c25e05 100644 (file)
@@ -1873,8 +1873,8 @@ function wfGetSiteNotice() {
        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;
@@ -2790,8 +2790,8 @@ function wfFindFile( $title, $time = false, $flags = 0 ) {
  * 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 );
 }
 
 /**