Mercurial > hg > fapweb
diff msite.inc.php @ 874:ffb5643eff4f
Rename functions.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 26 Nov 2014 15:12:59 +0200 |
parents | 5e9958f78b16 |
children | 6db8ef2bb1b5 |
line wrap: on
line diff
--- a/msite.inc.php Wed Nov 26 15:00:16 2014 +0200 +++ b/msite.inc.php Wed Nov 26 15:12:59 2014 +0200 @@ -1015,7 +1015,7 @@ // Get file magic info if (($finfo = finfo_open()) === false) { - stErrorLog("Internal error. Failed to initialize finfo()."); + stLogError("Internal error. Failed to initialize finfo()."); return stError("Internal error, failed to probe file."); } @@ -1026,7 +1026,7 @@ // Did we get anything? if ($sdata === FALSE || $smime === FALSE) { - stErrorLog("Failed to probe file '".$filename."'."); + stLogError("Failed to probe file '".$filename."'."); return stError("Internal error, failed to probe file."); } @@ -1045,14 +1045,14 @@ return $fdata; } - stErrorLog("File '".$filename."' (".$smime.") did not match any allowed file types."); + stLogError("File '".$filename."' (".$smime.") did not match any allowed file types."); return stError("No matching allowed file type found for '".$smime."'."); } function stFileError($userID, $adminMsg, $userMsg) { - stErrorLog($adminMsg); + stLogError($adminMsg); stError(($userID === 0) ? $adminMsg : $userMsg); return FALSE; }