From d5dca5a53d16902312da5300ffd3c2dde79109c4 Mon Sep 17 00:00:00 2001 From: rurban Date: Sat, 27 Jan 2007 21:53:03 +0000 Subject: [PATCH] Use TEMP_DIR for debug sql.log git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@5591 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/WikiDB.php | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/lib/WikiDB.php b/lib/WikiDB.php index 1f6e4329c..4b3cefe25 100644 --- a/lib/WikiDB.php +++ b/lib/WikiDB.php @@ -1,5 +1,5 @@ onDeletePage ($this, $pagename); @@ -988,7 +988,10 @@ class WikiDB_Page if (isa($newrevision, 'WikiDB_PageRevision')) { // Save didn't fail because of concurrent updates. $notify = $this->_wikidb->get('notify'); - if (!empty($notify) and is_array($notify) and !isa($GLOBALS['request'],'MockRequest')) { + if (!empty($notify) + and is_array($notify) + and !isa($GLOBALS['request'],'MockRequest')) + { include_once("lib/MailNotify.php"); $MailNotify = new MailNotify($newrevision->getName()); $MailNotify->onChangePage ($this, $wikitext, $version, $meta); @@ -2170,7 +2173,7 @@ function _sql_debuglog($msg, $newline=true, $shutdown=false) { static $i = 0; if (!$fp) { $stamp = strftime("%y%m%d-%H%M%S"); - $fp = fopen("/tmp/sql-$stamp.log", "a"); + $fp = fopen(TEMP_DIR."/sql-$stamp.log", "a"); register_shutdown_function("_sql_debuglog_shutdown_function"); } elseif ($shutdown) { fclose($fp); @@ -2185,6 +2188,9 @@ function _sql_debuglog_shutdown_function() { } // $Log: not supported by cvs2svn $ +// Revision 1.147 2007/01/04 16:41:41 rurban +// Some pageiterators also set ['pagedata']['linkrelation'], hmm +// // Revision 1.146 2007/01/02 13:20:00 rurban // rewrote listRelations. added linkSearch. force new date in renamePage. fix fortune error handling. added page->setAttributes. use translated initial owner. Clarify API: sortby,limit and exclude are strings. Enhance documentation. // -- 2.45.0