Update of /cvsroot/phpwiki/phpwiki/lib/plugin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6232
Modified Files:
UpLoad.php
Log Message:
Create log file if it does not exist
Index: UpLoad.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/lib/plugin/UpLoad.php,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -2 -b -p -d -r1.26 -r1.27
--- UpLoad.php 14 Jul 2007 12:05:07 -0000 1.26
+++ UpLoad.php 17 May 2008 06:53:54 -0000 1.27
@@ -261,6 +261,6 @@ ws[cfh]");
global $WikiTheme;
$user = $GLOBALS['request']->_user;
- if (!is_writable($upload_log)) {
- trigger_error(_("The upload logfile is not writable."), E_USER_WARNING);
+ if (file_exists($upload_log) and (!is_writable($upload_log))) {
+ trigger_error(_("The upload logfile exists but is not writable."), E_USER_WARNING);
}
elseif (!$log_handle = fopen ($upload_log, "a")) {
@@ -287,4 +287,7 @@ ws[cfh]");
// $Log$
+// Revision 1.27 2008/05/17 06:53:54 vargenau
+// Create log file if it does not exist
+//
// Revision 1.26 2007/07/14 12:05:07 rurban
// no inlined [] links anymore, edit inclusion, more extensions allowed.
|