Changeset 18474


Ignore:
Timestamp:
10/04/12 22:05:00 (7 years ago)
Author:
mistic100
Message:

stripslashes page_banner, remove warning during plugin restauration

Location:
extensions/header_manager
Files:
3 edited

Legend:

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

    r17734 r18474  
    6767$template->assign(array( 
    6868  'banners' => list_banners(true), 
    69   'CONF_PAGE_BANNER' => htmlspecialchars($conf['page_banner']), 
     69  'CONF_PAGE_BANNER' => stripslashes(htmlspecialchars($conf['page_banner'])), 
    7070  'BANNER_IMAGE' => $conf['header_manager']['image'], 
    7171  'BANNER_DISPLAY' => $conf['header_manager']['display'], 
  • extensions/header_manager/include/install.inc.php

    r17734 r18474  
    2222  else 
    2323  { 
    24     $new_conf = unserialize($conf['header_manager']); 
     24    $new_conf = is_string($conf['header_manager']) ? unserialize($conf['header_manager']) : $conf['header_manager']; 
    2525    if (!isset($new_conf['banner_on_picture'])) 
    2626    { 
  • extensions/header_manager/main.inc.php

    r17734 r18474  
    1616define('HEADER_MANAGER_DIR',     PWG_LOCAL_DIR . 'banners/'); 
    1717define('HEADER_MANAGER_TABLE',   $prefixeTable . 'category_banner'); 
    18 define('HEADER_MANAGER_VERSION', '1.0.4'); 
     18define('HEADER_MANAGER_VERSION', 'auto'); 
    1919 
    2020 
Note: See TracChangeset for help on using the changeset viewer.