Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

new theme settings

  • Loading branch information...
commit cb2c79a08b8b969e9775597945cc474bad1eb0cc 1 parent bb11253
@mbutsko mbutsko authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 theme-settings.php
View
4 theme-settings.php
@@ -38,9 +38,7 @@ function q7_form_system_theme_settings_alter(&$form, &$form_state) {
*/
function q7_settings_submit(&$form, &$form_state) {
// Check for a new uploaded file, and use that if available.
- if ($file = file_save_upload('sublogo_upload')) {
- dsm($form);
-
+ if ($file = file_save_upload('sublogo_upload', array(), 'public://')) {
$parts = pathinfo($file->filename);
$filename = (! empty($key)) ? str_replace('/', '_', $key) .'_sublogo.'. $parts['extension'] : 'sublogo.'. $parts['extension'];
Please sign in to comment.
Something went wrong with that request. Please try again.