Ignore:
Timestamp:
Oct 8, 2005, 1:25:42 AM (18 years ago)
Author:
plg
Message:
  • modification: configuration parameters gallery_title and gallery_description are GUI managed in Administration>Configuration>General
  • bug fixed: configuration parameters (use|show)_(exif|iptc) and authorize_remembering should have been deleted from config table some time ago.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/configuration.php

    r869 r882  
    112112      if (isset($_POST[$row['param']]))
    113113      {
     114        $value = $_POST[$row['param']];
     115     
     116        if ('gallery_title' == $row['param']
     117            or 'gallery_description' == $row['param'])
     118        {
     119          if (!$conf['allow_html_descriptions'])
     120          {
     121            $value = strip_tags($value);
     122          }
     123        }
     124       
    114125        $query = '
    115126UPDATE '.CONFIG_TABLE.'
    116   SET value = \''. str_replace("\'", "''", $_POST[$row['param']]).'\'
     127  SET value = \''. str_replace("\'", "''", $value).'\'
    117128  WHERE param = \''.$row['param'].'\'
    118129;';
     
    158169        'GALLERY_LOCKED_YES'=>$lock_yes,
    159170        'GALLERY_LOCKED_NO'=>$lock_no,
     171        'CONF_GALLERY_TITLE' => $conf['gallery_title'],
     172        'CONF_GALLERY_DESCRIPTION' => $conf['gallery_description'],
    160173        ));
    161174    break;
Note: See TracChangeset for help on using the changeset viewer.