projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adds XSRF protection to the Events module.
[platal.git]
/
classes
/
plmailer.php
diff --git
a/classes/plmailer.php
b/classes/plmailer.php
index
6b6fd0d
..
2106d50
100644
(file)
--- a/
classes/plmailer.php
+++ b/
classes/plmailer.php
@@
-265,7
+265,10
@@
class PlMailer extends Mail_Mime {
private function processPage($with_html = true)
{
if (!is_null($this->page)) {
private function processPage($with_html = true)
{
if (!is_null($this->page)) {
- $level = error_reporting(0);
+ global $globals;
+ if (!($globals->debug & DEBUG_SMARTY)) {
+ $level = error_reporting(0);
+ }
$this->page->run('head'); // process page headers
$this->wiki = trim($this->page->run('wiki')); // get wiki
if (!$this->wiki) {
$this->page->run('head'); // process page headers
$this->wiki = trim($this->page->run('wiki')); // get wiki
if (!$this->wiki) {
@@
-277,7
+280,9
@@
class PlMailer extends Mail_Mime {
}
}
}
}
}
}
- error_reporting($level);
+ if (!($globals->debug & DEBUG_SMARTY)) {
+ error_reporting($level);
+ }
}
if ($this->wiki) {
$this->setTxtBody(MiniWiki::WikiToText($this->wiki, false, 0, 78));
}
if ($this->wiki) {
$this->setTxtBody(MiniWiki::WikiToText($this->wiki, false, 0, 78));