Ignore:
Timestamp:
Jan 25, 2021, 10:19:15 PM (4 years ago)
Author:
ddtddt
Message:

[posted_date_changer] piwigo 11

Location:
extensions/posted_date_changer
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/posted_date_changer/language/en_UK/plugin.lang.php

    r10356 r32436  
    22
    33$lang['Change Posted Date'] = 'Change Posted Date';
     4$lang['Date can\'t be empty'] = 'Date can\'t be empty';
    45
    56?>
  • extensions/posted_date_changer/language/fr_FR/plugin.lang.php

    r10356 r32436  
    22
    33$lang['Change Posted Date'] = 'Changer la date d\'ajout';
    4 
     4$lang['Date can\'t be empty'] = 'La date ne peux pas être vide';
    55?>
  • extensions/posted_date_changer/main.inc.php

    r30028 r32436  
    4444        if(!empty($_POST['date_available'])){
    4545     $date_available = $_POST['date_available'];
    46         }else{
    47          $date_available=null;
    48         }
    49 
    50     $datas = array();
    51     foreach ($collection as $image_id)
    52     {
    53       array_push(
     46         $datas = array();
     47     foreach ($collection as $image_id)
     48      {
     49       array_push(
    5450        $datas,
    5551        array(
     
    5854          )
    5955        );
    60     }
    61 
     56      }
    6257    mass_updates(
    6358      IMAGES_TABLE,
     
    6560      $datas
    6661      );
     62    }else{
     63          load_language('plugin.lang', dirname(__FILE__).'/');;
     64          $_SESSION['page_errors'] = array(l10n('Date can\'t be empty'));
     65        }
    6766  }
    6867}
Note: See TracChangeset for help on using the changeset viewer.