From: <var...@us...> - 2009-06-12 10:29:14
|
Revision: 6925 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6925&view=rev Author: vargenau Date: 2009-06-12 10:29:12 +0000 (Fri, 12 Jun 2009) Log Message: ----------- Do not check e-mail when in Gforge Modified Paths: -------------- trunk/lib/plugin/WatchPage.php Modified: trunk/lib/plugin/WatchPage.php =================================================================== --- trunk/lib/plugin/WatchPage.php 2009-06-12 10:03:10 UTC (rev 6924) +++ trunk/lib/plugin/WatchPage.php 2009-06-12 10:29:12 UTC (rev 6925) @@ -114,18 +114,21 @@ } else { $pref = &$request->_prefs; $messages = ""; - $email = $pref->get("email"); - if (empty($email)) - return HTML::div( - array('class' => 'errors'), - _("ERROR: No email defined! You need to do this in your "), - WikiLink(_("UserPreferences"))); - - $emailVerified = $pref->get("emailVerified"); - if (empty($emailVerified)) - $messages = HTML::div(array('class' => 'mw-warning'), - HTML::p("WARNING! Your email address was not verifed yet!"), - HTML::p("EmailNotifications currently disabled. <TODO>")); + if (!defined('GFORGE') or !GFORGE) { + $email = $pref->get("email"); + if (empty($email)) { + return HTML::div( + array('class' => 'errors'), + _("ERROR: No email defined! You need to do this in your "), + WikiLink(_("UserPreferences"))); + } + $emailVerified = $pref->get("emailVerified"); + if (empty($emailVerified)) { + $messages = HTML::div(array('class' => 'mw-warning'), + HTML::p("WARNING! Your email address was not verifed yet!"), + HTML::p("EmailNotifications currently disabled. <TODO>")); + } + } $pagelist = $pref->get("notifyPages"); if (! $request->isPost() ) { return $this->showNotify($request, $messages, $page, $pagelist, false); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |