/[drupal]/contributions/modules/fast_gallery/FGImage.class.php
ViewVC logotype

Diff of /contributions/modules/fast_gallery/FGImage.class.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.2, Fri Oct 30 05:55:29 2009 UTC revision 1.3, Tue Nov 10 18:20:18 2009 UTC
# Line 48  class FGImage { Line 48  class FGImage {
48      $cache = fast_gallery_get_cache();      $cache = fast_gallery_get_cache();
49      $path = $this->getPath();      $path = $this->getPath();
50      if ($this->isDir) { //incase a dir we return a special image      if ($this->isDir) { //incase a dir we return a special image
51        $path = drupal_get_path('module', 'fast_gallery') . '/images/doc.screenshot.jpg';        $path = drupal_get_path('module', 'fast_gallery') . '/images/folder.png';
52          return theme('image', array('path' => $path, 'title' => t('folder')));
53      }      }
54      $cache->createthumb($path, 150, 100);      else {
55      return theme('image', array('path' => $path . '.thumb'));        $cache->createthumb($path, 150, 100);
56          return theme('image', array('path' => $path . '.thumb', 'title' => $this->getName()));
57        }
58    
59    }    }
60    /**    /**
61     * Given a path and index n, removes n number of elements from the end of     * Given a path and index n, removes n number of elements from the end of

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.2