Changeset 11845


Ignore:
Timestamp:
Jul 27, 2011, 8:20:44 PM (9 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)

Location:
extensions/Extended_author
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/Extended_author/TODO

    r11819 r11845  
    11=== TODO ===
    22-       Everything that's todo in the copyrights plugin :P
    3 -       When assigning a default cpoyright to an author, update all 0's from that author in copyright_media
    43
    54=== Bugs ===
  • extensions/Extended_author/main.inc.php

    r11837 r11845  
    22/*
    33Plugin Name: Extended_author
    4 Version: 1.0
     4Version: 1.0.1
    55Description: Provide information about authors and default copyright (Copyrights plugin is nescessary).
    66Plugin URI: http://piwigo.org/ext/revision_add.php?eid=571
  • 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.