+function maintenance_content(App $a)
+{
+ $reason = Config::get('system', 'maintenance_reason');
+
+ if (substr(Strings::normaliseLink($reason), 0, 7) == 'http://') {
+ header("HTTP/1.1 307 Temporary Redirect");
+ header("Location:".$reason);
+ return;
+ }