Changeset 31377


Ignore:
Timestamp:
Feb 28, 2016, 11:49:48 PM (5 years ago)
Author:
ddtddt
Message:

[extensions] - rename project

Location:
extensions/DownloadFromThumbnail
Files:
3 edited
1 moved

Legend:

Unmodified
Added
Removed
  • extensions/DownloadFromThumbnail/main.inc.php

    r31376 r31377  
    11<?php
    22/*
    3 Plugin Name: Download Since Thumbnail
     3Plugin Name: Download From Thumbnail
    44Version: 2.7.0
    55Description:
    66Plugin URI: http://piwigo.org/ext/extension_view.php?eid=
    7 Author: TEMMII
     7Author: ddtddt
    88Author URI: http://temmii.com/
    99*/
  • extensions/DownloadFromThumbnail/maintain.class.php

    r31376 r31377  
    22defined('PHPWG_ROOT_PATH') or die('Hacking attempt!');
    33
    4 class DownloadSinceThumbnail_maintain extends PluginMaintain
     4class DownloadFromThumbnail_maintain extends PluginMaintain
    55{
    66  private $installed = false;
     
    1414
    1515  function activate($plugin_version, &$errors=array()){
    16         $query = "ALTER TABLE ". HISTORY_TABLE ." CHANGE `image_type` `image_type` ENUM( 'picture', 'high', 'other', 'download' ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL";
     16        $image_type = implode(",", get_enums(HISTORY_TABLE, 'image_type')).",dft_download";
     17        $query = "ALTER TABLE ". HISTORY_TABLE ." CHANGE `image_type` `image_type` ENUM( '".$image_type."' ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL";
    1718        $result = pwg_query($query);
    1819  }
  • extensions/DownloadFromThumbnail/save_history.php

    r31376 r31377  
    1313}
    1414
    15 pwg_log($_POST['dsp_his'], 'download');
     15pwg_log($_POST['dsp_his'], 'dft_download');
    1616/*
    1717
Note: See TracChangeset for help on using the changeset viewer.