Changeset 1295

Show
Ignore:
Timestamp:
09/18/07 15:30:28 (1 year ago)
Author:
benoitg
Message:
  • portal/index.php: Add a call to garbage_collect() to fix #367
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wifidog-auth/CHANGELOG

    r1294 r1295  
    11# $Id$ 
     22007-09-18 Benoit GrĂ©goire  <bock@step.polymtl.ca> 
     3        * portal/index.php:  Add a call to garbage_collect() to fix #367 
     4         
    252007-09-17 Benoit GrĂ©goire  <bock@step.polymtl.ca> 
    36        * SmartyWifidog:  If ANY of the mandatory dependencies (not just smarty) are missing, user will be redirected to the install script 
  • trunk/wifidog-auth/wifidog/portal/index.php

    r1253 r1295  
    107107    } 
    108108} 
     109 
    109110/* 
    110111 * If this node has a custom portal defined, and the network config allows it, 
     
    114115 
    115116if (!empty ($custom_portal_url) && $network->getCustomPortalRedirectAllowed()) { 
     117    /** 
     118     * If the database doesn't get cleaned up by a cron job, we'll do now (normally this is done in ManiUI, but for custom URLs, MainUI may never be instanciated 
     119     */ 
     120    if (CONF_USE_CRON_FOR_DB_CLEANUP == false) { 
     121        garbage_collect(); 
     122    } 
    116123    header("Location: {$custom_portal_url}"); 
    117124    exit;