function _content()
{
global $prefs;
+
+ // @TODO Remove this hack when maintenance is refactored.
+ $from_block = true;
require_once dirname(__FILE__) . '/../base.php';
require_once KRONOLITH_BASE . '/lib/Day.php';
*/
function _content()
{
+ // @TODO Remove this hack when maintenance is refactored.
+ $from_block = true;
require_once dirname(__FILE__) . '/../base.php';
require_once KRONOLITH_BASE . '/lib/Day.php';
*/
function _content()
{
+ // @TODO Remove this hack when maintenance is refactored.
+ $from_block = true;
require_once dirname(__FILE__) . '/../base.php';
require_once KRONOLITH_BASE . '/lib/Day.php';
global $registry, $prefs;
+ $GLOBALS['from_block'] = true;
+
Horde::addScriptFile('tooltip.js', 'horde', true);
$startDate = new Horde_Date(array('year' => date('Y'), 'month' => date('n') - $this->_params['months'], 'mday' => date('j')));
function _params()
{
@define('KRONOLITH_BASE', dirname(__FILE__) . '/../..');
+
require_once KRONOLITH_BASE . '/lib/base.php';
$params = array('calendar' => array('name' => _("Calendar"),
function _content()
{
global $registry, $prefs;
+
+ // @TODO Remove this hack when maintenance is refactored.
+ $from_block = true;
require_once dirname(__FILE__) . '/../base.php';
require_once KRONOLITH_BASE . '/lib/Day.php';
Kronolith::initialize();
+// TODO - Maintenance operations need to be refactored to a more global
+// operation and then wen can get rid of these hackish checks
/* Do maintenance operations - need to check for a number of conditions to be
* sure that we aren't here due to alarm notifications (which would occur after
* headers are sent), we aren't on any of the portal pages, and that we haven't
* already performed maintenance.
*/
require_once 'Horde/Maintenance.php';
-if (Kronolith::loginTasksFlag() &&
+if (empty($from_block) && Kronolith::loginTasksFlag() &&
!strstr($_SERVER['PHP_SELF'], 'maintenance.php') &&
!headers_sent() && !defined('AUTH_HANDLER') &&
$GLOBALS['prefs']->getValue('do_maintenance')) {