From: Alexandre Emsenhuber Date: Tue, 7 Oct 2008 20:14:55 +0000 (+0000) Subject: Revert r41792, broke uploads. Note that RepoGroup::findFile() returns false if no... X-Git-Tag: 1.31.0-rc.0~44849 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%7B%7B%20url_for%28%27admin_users%27%29%20%7D%7D?a=commitdiff_plain;h=a8925f97471072e0f86609f461f5d31f97b41df5;p=lhc%2Fweb%2Fwiklou.git Revert r41792, broke uploads. Note that RepoGroup::findFile() returns false if no file was found, which might be the case when uploading new files ;) (see bug 15883) --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 0c25e05c3d..6546c9f4c3 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -2791,7 +2791,7 @@ function wfFindFile( $title, $time = false, $flags = 0 ) { * Returns a valid placeholder object if the file does not exist. */ function wfLocalFile( $title, $time = false ) { - return RepoGroup::singleton()->getLocalRepo()->findFile( $title, $time ); + return RepoGroup::singleton()->getLocalRepo()->newFile( $title, $time ); } /**