Forums / General Questions / "Before down for maintenance" notice is an error instead of warning?

"Before down for maintenance" notice is an error instead of warning?

Locked

Started by lat9 on 8 Aug 2010, 4:24 PM · Views: 887

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
8 Aug 2010, 4:24 PM
#1
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,127
Plugin Contributions:
56

"Before down for maintenance" notice is an error instead of warning?

Running 1.3.9c. When I enable "NOTICE PUBLIC Before going Down for Maintenance: ON/OFF" in my admin, the message "NOTICE: This website is scheduled to be down for maintenance on: 15/05/2003 2-3 PM" appears, as expected, in my store's header message ... but the message is formatted as an error (i.e. red background) instead of a warning (yellow background).

I'm not sure if this was intended, but I made the following change (in red) to /includes/init_includes/init_header.php to get the message to display as a warning:

// give the visitors a message that the website will be down at ... time
if ( (WARN_BEFORE_DOWN_FOR_MAINTENANCE == 'true') && (DOWN_FOR_MAINTENANCE == 'false') ) {
  $messageStack->add('header', TEXT_BEFORE_DOWN_FOR_MAINTENANCE . PERIOD_BEFORE_DOWN_FOR_MAINTENANCE, 'warning');
}
8 Aug 2010, 8:51 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: "Before down for maintenance" notice is an error instead of warning?

The Notice is in RED ... if you want it in YELLOW change it to a:
caution

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!