Commit 4db5191e authored by bcosca's avatar bcosca
Browse files

NEW: BAIL variable enables/disables continuance of execution on non-fatal errors

parent 6957663e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -910,6 +910,7 @@ final class Base {
					($debug?('<pre>'.$out.'</pre>'.$eol):'').
				'</body>'.$eol.
				'</html>');
		if (!$this->hive['BAIL'])
			die;
	}

@@ -1492,6 +1493,7 @@ final class Base {
			'AJAX'=>isset($headers['X-Requested-With']) &&
				$headers['X-Requested-With']=='XMLHttpRequest',
			'AUTOLOAD'=>'./',
			'BAIL'=>FALSE,
			'BASE'=>$base,
			'BODY'=>file_get_contents('php://input'),
			'CACHE'=>FALSE,