realpath('.').'/'.file_directory_path().'/'.$image_path, 'rel' => base_path().file_directory_path().'/'.$image_path ) ; osu_drupal_1_11_check_custom_header_images_path($osu_rotating_header_path['abs'], $theme_path); } else { $osu_rotating_header_path = array( 'abs' => realpath('.').'/'.$theme_path.'/images/rotating_headers/', //'rel' => base_path().'/'.$theme_path.'/images/rotating_headers/' // JP - bug fix 'rel' => base_path().''.$theme_path.'/images/rotating_headers/' ); } /* // JP - test block echo ""; echo "abs path: $osu_rotating_header_path[abs]
"; echo "rel path: $osu_rotating_header_path[rel]
"; echo base_path() . "
"; echo "$use_custom_path
"; echo "
"; // JP - end test block */ return $osu_rotating_header_path; } function osu_drupal_1_11_check_custom_header_images_path($custom_path, $theme_path) { if(!empty($custom_path)) { if (!is_dir($custom_path)) { mkdir($custom_path, 0775, true); $files_to_copy = glob(realpath('.').'/'.$theme_path.'/images/rotating_headers/*'); foreach ($files_to_copy as $file_to_copy) { copy($file_to_copy, $custom_path.basename($file_to_copy)); } } } } ?>