Changeset 9366


Ignore:
Timestamp:
Feb 24, 2011, 2:48:31 PM (9 years ago)
Author:
plg
Message:

new function to get image name depending on name and filename

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_picture.inc.php

    r8728 r9366  
    6666
    6767
     68/*
     69 * Returns the name of a photo according to its name and its filename.
     70 * @param name string
     71 * @param filename string
     72 * @return string
     73 */
     74function get_image_name($name, $filename)
     75{
     76  if (!empty($name))
     77  {
     78    return $name;
     79  }
     80  else
     81  {
     82    return get_name_from_file($filename);
     83  }
     84}
     85
     86
    6887/**
    6988 * Returns the PATH to the image to be displayed in the picture page. If the
Note: See TracChangeset for help on using the changeset viewer.