From: <var...@us...> - 2012-01-03 14:09:29
|
Revision: 8222 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8222&view=rev Author: vargenau Date: 2012-01-03 14:09:23 +0000 (Tue, 03 Jan 2012) Log Message: ----------- Add braces Modified Paths: -------------- trunk/lib/MailNotify.php Modified: trunk/lib/MailNotify.php =================================================================== --- trunk/lib/MailNotify.php 2012-01-03 13:46:55 UTC (rev 8221) +++ trunk/lib/MailNotify.php 2012-01-03 14:09:23 UTC (rev 8222) @@ -42,16 +42,18 @@ * @author Reini Urban */ -if (!defined("MAILER_LOG")) - if (isWindows()) +if (!defined("MAILER_LOG")) { + if (isWindows()) { define("MAILER_LOG", 'c:/wikimail.log'); - else + } else { define("MAILER_LOG", '/var/log/wikimail.log'); + } +} class MailNotify { function MailNotify($pagename) { - $this->pagename = $pagename; /* which page */ + $this->pagename = $pagename; /* which page */ $this->emails = array(); /* to which addresses */ $this->userids = array(); /* corresponding array of displayed names, don't display the email addresses */ @@ -81,8 +83,9 @@ $prefs = $u->getPreferences(); $email = $prefs->get('email'); // do a dynamic emailVerified check update - if ($doverify and !$request->_prefs->get('emailVerified')) + if ($doverify and !$request->_prefs->get('emailVerified')) { $email = ''; + } } else { // not current user if (ENABLE_USER_NEW) { $u = WikiUser($userid); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |