Project

General

Profile

« Previous | Next » 

Revision 231984cc

Added by Andreas Kohlbecker about 16 years ago

View differences:

modules/cdm_dataportal/cdm_api/cdm_api.module
294 294

  
295 295

  
296 296
function proxy_content($url, $theme = null){
297
  $args = func_get_args();
298
  
299
  $url = array_shift($args);
300
  $theme = array_shift($args);
301
  
297 302
  $data = get_content(urldecode($url));
298 303
  
299 304
  if(!$theme){
300 305
    print $data;
301 306
  } else {
302
    print theme($theme, cdm_load_obj($data));
307
    array_unshift($args, $theme, cdm_load_obj($data));
308
    print call_user_func_array('theme', $args);
303 309
  }
304 310
}
305 311

  

Also available in: Unified diff