Index: trunk/admin/category/category_maint.php =================================================================== diff -u -r667 -r668 --- trunk/admin/category/category_maint.php (.../category_maint.php) (revision 667) +++ trunk/admin/category/category_maint.php (.../category_maint.php) (revision 668) @@ -70,10 +70,10 @@ require_once($pathtoroot.$admin."/category/permcacheupdate.php"); - if(!$objSession->GetVariable('PermCache_UpdateRequired')) +{ die(header('Location: '.$adminURL.'/'.$objSession->GetVariable('ReturnScript').'?env='.BuildEnv())); - +} if(isset($_GET['continue'])) { $updater =& new clsCacheUpdater(1); @@ -89,14 +89,14 @@ $no_url = $_SERVER['PHP_SELF'].'?env='.BuildEnv().'&continue=0'; $yes_url = $_SERVER['PHP_SELF'].'?env='.BuildEnv().'&continue=1'; - $title = prompt_language("la_prompt_updating")." ".prompt_language("la_Text_Categories"); - int_header(NULL,NULL,$title); - flush(); if(!isset($_GET['force'])) if($updater->totalCats > CACHE_PERM_CHUNK_SIZE) { $updater->setData(); + $title = prompt_language("la_prompt_updating")." ".prompt_language("la_Text_Categories"); + int_header(NULL,NULL,$title); + flush(); ?> "; int_footer(); exit;