Ignore:
Timestamp:
Jul 27, 2011, 8:20:44 PM (13 years ago)
Author:
Mattias
Message:

Fixed the bug that when you uninstall this plugin, it didnt remove its traces in the copyright plugin (the -1 copyrights)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Extended_author/maintain.inc.php

    r11819 r11845  
    8686    ;';
    8787  pwg_query($query);
     88 
     89  // Remove the default copyright from the admin table
     90  $query = '
     91    DELETE
     92    FROM %s
     93    WHERE cr_id = -1
     94    ;',
     95    COPYRIGHTS_ADMIN);
     96  pwg_query($query);
     97 
     98  // And remove all default copyrights from the media table
     99  $query = '
     100    DELETE
     101    FROM %s
     102    WHERE cr_id = -1
     103    ;',
     104    COPYRIGHTS_MEDIA);
     105  pwg_query($query); 
    88106}
    89107
Note: See TracChangeset for help on using the changeset viewer.