Plugin Directory

Changeset 1888713


Ignore:
Timestamp:
06/07/2018 10:30:17 AM (8 years ago)
Author:
emarten
Message:

fixes migration bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dsgvo/trunk/eu-dsgvo-helper.php

    r1888701 r1888713  
    44        Plugin Name: EU DSGVO Helper
    55        Description: This Plugin will be further developed. It so far caches google webfonts locally and replaces youtube embeded videos with a preview-image which becomes an embeded video on-click. Removes Emojis. More functions will be added soon.
    6         Version: 1.0.5.7
     6        Version: 1.0.5.8
    77        Author: Eric Marten
    88        Author URL: https://www.herr-marten.de/
     
    1010
    1111
    12     define("EU_DSGVO_HELPER_VERSION",2);
     12    define("EU_DSGVO_HELPER_VERSION",4);
    1313
    1414    if (get_option("eudsgvo_helper_installed",0)!=EU_DSGVO_HELPER_VERSION )
     
    1919    function install_eu_dsgvo_helper()
    2020    {
    21         update_option("eudsgvo_helper_installed",EU_DSGVO_HELPER_VERSION);
     21        if (get_option("eudsgvo_helper_installed",-1)==-1)
     22        {
     23            update_option("eudsgvo_helper_installed",EU_DSGVO_HELPER_VERSION);
     24        }
    2225    }
    2326    register_activation_hook( __FILE__ , 'install_eu_dsgvo_helper' );
     
    2730    {
    2831
    29         if ($from<3)
     32        if ($from<5)
    3033        {
    3134
     
    5659                    if (substr($rd,0,1)!="." && !is_dir($upload_dir.$rd) )
    5760                    {
    58                         if ( filemtime($upload_dir.$rd)<=1528364000 )
    59                         {
    60                             @unlink($upload_dir.$rd);
    61                         }
     61                        @unlink($upload_dir.$rd);
    6262                    }
    6363                }
Note: See TracChangeset for help on using the changeset viewer.