Changeset 479 for trunk/lib/ImageThumb.inc.php
- Timestamp:
- May 3, 2014 11:09:03 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/ImageThumb.inc.php
r478 r479 118 118 public function setParam($params) 119 119 { 120 120 $app =& App::getInstance(); 121 121 122 122 if (isset($params) && is_array($params)) { … … 162 162 public function getParam($param) 163 163 { 164 164 $app =& App::getInstance(); 165 165 166 166 if (array_key_exists($param, $this->_params)) { … … 182 182 public function setSpec($spec, $index=null) 183 183 { 184 184 $app =& App::getInstance(); 185 185 186 186 // A little sanity checking. … … 273 273 public function processAll($runtime_specs=null) 274 274 { 275 275 $app =& App::getInstance(); 276 276 277 277 // Ensure we have a source. … … 315 315 public function processFile($file_name, $runtime_specs=null) 316 316 { 317 317 $app =& App::getInstance(); 318 318 319 319 // Source file determined by provided file_name. … … 454 454 private function _resizeWithNetpbm($source_file, $dest_file, $spec) 455 455 { 456 456 $app =& App::getInstance(); 457 457 458 458 // Define pnmscale arguments. … … 523 523 private function _resizeWithGD($source_file, $dest_file, $spec) 524 524 { 525 525 $app =& App::getInstance(); 526 526 527 527 // Get original file dimensions and type. … … 664 664 public function deleteThumbs($file_name, $use_glob=false) 665 665 { 666 666 $app =& App::getInstance(); 667 667 668 668 // Ensure we have a source. … … 702 702 public function deleteOriginal($file_name) 703 703 { 704 704 $app =& App::getInstance(); 705 705 706 706 // Ensure we have a source. … … 735 735 public function exists($file_name) 736 736 { 737 737 $app =& App::getInstance(); 738 738 739 739 // Ensure we have a source. … … 768 768 private function _createDestDirs($filename=null) 769 769 { 770 770 $app =& App::getInstance(); 771 771 772 772 // Keep track of directories we've already created. … … 826 826 private function _raiseMsg($message, $type, $file, $line) 827 827 { 828 828 $app =& App::getInstance(); 829 829 830 830 if ($this->getParam('display_messages') === true || (is_int($this->getParam('display_messages')) && $this->getParam('display_messages') & $type > 0)) {
Note: See TracChangeset
for help on using the changeset viewer.