Changeset 557


Ignore:
Timestamp:
Oct 7, 2004, 11:42:22 PM (20 years ago)
Author:
z0rglub
Message:
  • bug 55 : Cannot redeclare scandir(), this function is new in PHP 5.x
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/release-1_3/admin/thumbnail.php

    r549 r557  
    6969}
    7070
    71 // scandir scans a dir to find pictures without thumbnails. Once found,
     71// pwg_scandir scans a dir to find pictures without thumbnails. Once found,
    7272// creation of the thumbnails (RatioResizeImg). Only the first $_POST['n']
    7373// pictures without thumbnails are treated.
    74 // scandir returns an array with the generation time of each thumbnail (for
     74// pwg_scandir returns an array with the generation time of each thumbnail (for
    7575// statistics purpose)
    76 function scandir( $dir, $width, $height )
     76function pwg_scandir( $dir, $width, $height )
    7777{
    7878  global $conf;
     
    298298    {
    299299      $vtp->addSession( $sub, 'results' );
    300       $stats = scandir( $_GET['dir'], $_POST['width'], $_POST['height'] );
     300      $stats = pwg_scandir( $_GET['dir'], $_POST['width'], $_POST['height'] );
    301301      $times = array();
    302302      foreach ( $stats as $stat ) {
Note: See TracChangeset for help on using the changeset viewer.