Skip to content
Snippets Groups Projects
Commit 1448848d authored by Tim Steiner's avatar Tim Steiner
Browse files

[gh-287] Merging from testing into staging -c 1440

git-svn-id: file:///tmp/wdn_thm_drupal/branches/drupal-7.x/staging@1455 20a16fea-79d4-4915-8869-1ea9d5ebf173
parent 358ed8bb
No related branches found
No related tags found
No related merge requests found
......@@ -318,6 +318,7 @@ EOF;
$files_dir = $settings_dir . '/files';
chmod($files_dir, 0777);
chmod($files_dir . '/styles', 0777);
// IMCE setup (currently cannot be shared between sites)
......
......@@ -460,6 +460,15 @@ function unl_menu_alter(&$items) {
$items['node/%node/moderation']['theme callback'] = '_unl_get_admin_theme';
$items['node/%node/moderation/%/unpublish']['theme callback'] = '_unl_get_admin_theme';
}
// Add a menu hook for the image module to use clean file URLs.
if (variable_get('unl_clean_file_url') && module_exists('image')) {
$directory_path = file_stream_wrapper_get_instance_by_scheme('public')->getDirectoryPath();
$items['styles/%image_style'] = $items[$directory_path . '/styles/%image_style'];
// This parameter is how "deep" to look into request_path() for the image's path.
// Since clean URLs have no "prefix", we can just set it to 1.
$items['styles/%image_style']['page arguments'] = array(1);
}
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment