From: <var...@us...> - 2012-01-03 14:13:13
|
Revision: 8223 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8223&view=rev Author: vargenau Date: 2012-01-03 14:13:07 +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 14:09:23 UTC (rev 8222) +++ trunk/lib/MailNotify.php 2012-01-03 14:13:07 UTC (rev 8223) @@ -263,7 +263,9 @@ $backend = &$request->_dbi->_backend; $subject = _("Page change").' '.($this->pagename); $previous = $backend->get_previous_version($this->pagename, $version); - if (!isset($meta['mtime'])) $meta['mtime'] = time(); + if (!isset($meta['mtime'])) { + $meta['mtime'] = time(); + } if ($previous) { $difflink = WikiURL($this->pagename, array('action'=>'diff'), true); $cache = &$request->_dbi->_cache; @@ -322,13 +324,13 @@ */ function onChangePage (&$wikidb, &$wikitext, $version, &$meta) { $result = true; - if (!isa($GLOBALS['request'],'MockRequest')) { - $notify = $wikidb->get('notify'); + if (!isa($GLOBALS['request'],'MockRequest')) { + $notify = $wikidb->get('notify'); /* Generate notification emails? */ - if (!empty($notify) and is_array($notify)) { + if (!empty($notify) and is_array($notify)) { if (empty($this->pagename)) $this->pagename = $meta['pagename']; - // TODO: Should be used for ModeratePage and RSS2 Cloud xml-rpc also. + // TODO: Should be used for ModeratePage and RSS2 Cloud xml-rpc also. $this->getPageChangeEmails($notify); if (!empty($this->emails)) { $result = $this->sendPageChangeNotification($wikitext, $version, $meta); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |