Changeset 504


Ignore:
Timestamp:
Aug 29, 2004, 6:56:05 PM (20 years ago)
Author:
gweltas
Message:

PHP5 compatibility

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/thumbnail.php

    r393 r504  
    7474}
    7575
    76 // scandir scans a dir to find pictures without thumbnails. Once found,
     76// phpwg_scandir scans a dir to find pictures without thumbnails. Once found,
    7777// creation of the thumbnails (RatioResizeImg). Only the first $_POST['n']
    7878// pictures without thumbnails are treated.
    7979// scandir returns an array with the generation time of each thumbnail (for
    8080// statistics purpose)
    81 function scandir( $dir, $width, $height )
     81function phpwg_scandir( $dir, $width, $height )
    8282{
    8383  global $conf;
     
    268268  if ( count( $errors ) == 0 )
    269269  {
    270     $stats = scandir( $_GET['dir'], $_POST['width'], $_POST['height'] );
     270    $stats = phpwg_scandir( $_GET['dir'], $_POST['width'], $_POST['height'] );
    271271  }
    272272}
Note: See TracChangeset for help on using the changeset viewer.