Changeset 2217


Ignore:
Timestamp:
Feb 27, 2008, 4:15:31 AM (17 years ago)
Author:
rvelices
Message:
  • works with PHP5
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions_check_integrity.inc.php

    r2208 r2217  
    7979      foreach ($page['check_integrity']['list'] as $i => $c13y)
    8080      {
    81         if (!empty($c13y['correction_fct']) and 
     81        if (!empty($c13y['correction_fct']) and
    8282            $c13y['is_callable'] and
    8383            in_array($c13y['id'], $_POST['c13y_selection']))
     
    9797          }
    9898          $page['check_integrity']['list'][$i]['corrected'] = call_user_func_array($c13y['correction_fct'], $args);
    99          
     99
    100100          if ($page['check_integrity']['list'][$i]['corrected'])
    101101          {
     
    150150  $ignore_list_changed =
    151151    (
    152       ($ignore_list_changed) or 
     152      ($ignore_list_changed) or
    153153      (count(array_diff($page['check_integrity']['ignore_list'], $page['check_integrity']['build_ignore_list'])) > 0) or
    154154      (count(array_diff($page['check_integrity']['build_ignore_list'], $page['check_integrity']['ignore_list'])) > 0)
     
    268268    }
    269269
    270     $template->concat_var_from_handle('ADMIN_CONTENT', 'check_integrity');
     270    $template->concat_var('ADMIN_CONTENT', $template->parse('check_integrity', true) );
    271271  }
    272272}
     
    393393      'l10n_non_existent' => 'c13y_default_non_existent');
    394394  }
    395  
     395
    396396  $c13y_users[$conf['webmaster_id']] = array(
    397397    'status' => 'webmaster',
     
    404404  left join '.USER_INFOS_TABLE.' as ui
    405405      on u.'.$conf['user_fields']['id'].' = ui.user_id
    406 where 
     406where
    407407  u.'.$conf['user_fields']['id'].' in ('.implode(',', array_keys($c13y_users)).')
    408408;';
     
    477477            }
    478478          }
    479          
     479
    480480          $inserts = array(
    481481            array(
  • trunk/include/template.class.php

    r2216 r2217  
    246246    $is_new = true;
    247247    $params = array('resource_name' => $this->files[$handle], 'quiet'=>true, 'get_source'=>true);
    248     if ( $this->smarty->_fetch_resource_info(&$params) )
     248    if ( $this->smarty->_fetch_resource_info($params) )
    249249    {
    250250      if (!preg_match('~{(/(if|section|foreach))|\$[a-zA-Z_]+}~', @$params['source_content']) )
Note: See TracChangeset for help on using the changeset viewer.