Changeset 11846


Ignore:
Timestamp:
07/27/11 20:43:32 (8 years ago)
Author:
Mattias
Message:

Fixed another bug in maintain.inc.php

it works now :-/

Location:
extensions/Extended_author
Files:
2 edited

Legend:

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

    r11845 r11846  
    11<?php 
    22/* 
    3 Plugin Name: Extended_author 
    4 Version: 1.0.1 
     3Plugin Name: Extended author 
     4Version: 1.0.2 
    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

    r11845 r11846  
    6666  $query = ' 
    6767        INSERT INTO '.$prefixeTable.'copyrights_admin 
    68         VALUES (-1, \'Author\'s default copyright\', \'\', \'This is the default copyright for an author.\', 1) 
     68        VALUES (-1, \'Author\'\'s default copyright\', \'\', \'This is the default copyright for an author.\', 1) 
    6969        ON DUPLICATE KEY UPDATE cr_id = -1 
    7070    ;'; 
     
    9090  $query = ' 
    9191    DELETE 
    92     FROM %s 
     92    FROM '.$prefixeTable.'copyrights_admin 
    9393    WHERE cr_id = -1 
    94     ;', 
    95     COPYRIGHTS_ADMIN); 
     94    ;'; 
    9695  pwg_query($query); 
    9796   
     
    9998  $query = ' 
    10099    DELETE 
    101     FROM %s 
     100    FROM '.$prefixeTable.'copyrights_media 
    102101    WHERE cr_id = -1 
    103     ;', 
    104     COPYRIGHTS_MEDIA); 
     102    ;'; 
    105103  pwg_query($query);   
    106104} 
Note: See TracChangeset for help on using the changeset viewer.