original_string: protected function configure() {
  		// set thumbnails path
  		$path = $this->options['tmbPath'];
  		if ($path) {
  			if (!file_exists($path)) {
  				if (@mkdir($path)) {
  					chmod($path, $this->options['tmbPathMode']);
  				} else {
  					$path = '';
  				}
  			} 
  			
  			if (is_dir($path) && is_readable($path)) {
  				$this->tmbPath = $path;
  				$this->tmbPathWritable = is_writable($path);
  			}
  		}
  
  		// set image manipulation library
  		$type = preg_match('/^(imagick|gd|auto)$/i', $this->options['imgLib'])
  			? strtolower($this->options['imgLib'])
  			: 'auto';
  
  		if (($type == 'imagick' || $type == 'auto') && extension_loaded('imagick')) {
  			$this->imgLib = 'imagick';
  		} else {
  			$this->imgLib = function_exists('gd_info') ? 'gd' : '';
  		}
  		
  	}
code: protected function configure() {
  		// set thumbnails path
  		$path = $this->options['tmbPath'];
  		if ($path) {
  			if (!file_exists($path)) {
  				if (@mkdir($path)) {
  					chmod($path, $this->options['tmbPathMode']);
  				} else {
  					$path = '';
  				}
  			} 
  			
  			if (is_dir($path) && is_readable($path)) {
  				$this->tmbPath = $path;
  				$this->tmbPathWritable = is_writable($path);
  			}
  		}
  
  		// set image manipulation library
  		$type = preg_match('/^(imagick|gd|auto)$/i', $this->options['imgLib'])
  			? strtolower($this->options['imgLib'])
  			: 'auto';
  
  		if (($type == 'imagick' || $type == 'auto') && extension_loaded('imagick')) {
  			$this->imgLib = 'imagick';
  		} else {
  			$this->imgLib = function_exists('gd_info') ? 'gd' : '';
  		}
  		
  	}
code_tokens: protected function configure ( ) { // set thumbnails path $ path = $ this -> options [ 'tmbPath' ] ; if ( $ path ) { if ( ! file_exists ( $ path ) ) { if ( @ mkdir ( $ path ) ) { chmod ( $ path , $ this -> options [ 'tmbPathMode' ] ) ; } else { $ path = '' ; } } if ( is_dir ( $ path ) && is_readable ( $ path ) ) { $ this -> tmbPath = $ path ; $ this -> tmbPathWritable = is_writable ( $ path ) ; } } // set image manipulation library $ type = preg_match ( '/^(imagick|gd|auto)$/i' , $ this -> options [ 'imgLib' ] ) ? strtolower ( $ this -> options [ 'imgLib' ] ) : 'auto' ; if ( ( $ type == 'imagick' || $ type == 'auto' ) && extension_loaded ( 'imagick' ) ) { $ this -> imgLib = 'imagick' ; } else { $ this -> imgLib = function_exists ( 'gd_info' ) ? 'gd' : '' ; } }
docstring: Configure after successfull mount.
  By default set thumbnails path and image manipulation library.
  
  @return void
  @author Dmitry (dio) Levashov
docstring_tokens: Configure after successfull mount . By default set thumbnails path and image manipulation library .