Changeset 29634


Ignore:
Timestamp:
09/18/14 16:57:23 (5 years ago)
Author:
mistic100
Message:

don't change banner to last uploaded

Location:
extensions/header_manager/admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/header_manager/admin/add.php

    r28843 r29634  
    3535   
    3636  $_SESSION['page_infos'][] = l10n('Banner added'); 
    37   pwg_set_session_var('added_banner', $_POST['picture_file']); 
    3837   
    3938  if (!empty($_GET['redirect'])) 
  • extensions/header_manager/admin/config.php

    r28843 r29634  
    11<?php 
    22defined('HEADER_MANAGER_PATH') or die('Hacking attempt!'); 
    3  
    4 // change banner to last uploaded 
    5 if (pwg_get_session_var('added_banner')!==null and $conf['header_manager']['image']!='random') 
    6 { 
    7   $conf['header_manager']['image'] = pwg_get_session_var('added_banner'); 
    8   conf_update_param('header_manager', $conf['header_manager']); 
    9   pwg_unset_session_var('added_banner'); 
    10 } 
    113 
    124 
Note: See TracChangeset for help on using the changeset viewer.