protected function gettmb($path, $stat) {
		if ($this->tmbURL && $this->tmbPath) {
			// file itself thumnbnail
			if (strpos($path, $this->tmbPath) === 0) {
				return basename($path);
			}

			$name = $this->tmbname($stat);
			if (file_exists($this->tmbPath.DIRECTORY_SEPARATOR.$name)) {
				return $name;
			}
		}
		return false;
	}
protected function gettmb($path, $stat) {
		if ($this->tmbURL && $this->tmbPath) {
			// file itself thumnbnail
			if (strpos($path, $this->tmbPath) === 0) {
				return basename($path);
			}

			$name = $this->tmbname($stat);
			if (file_exists($this->tmbPath.DIRECTORY_SEPARATOR.$name)) {
				return $name;
			}
		}
		return false;
	}
protected function gettmb ( $ path , $ stat ) { if ( $ this -> tmbURL && $ this -> tmbPath ) { // file itself thumnbnail if ( strpos ( $ path , $ this -> tmbPath ) === 0 ) { return basename ( $ path ) ; } $ name = $ this -> tmbname ( $ stat ) ; if ( file_exists ( $ this -> tmbPath . DIRECTORY_SEPARATOR . $ name ) ) { return $ name ; } } return false ; }
Return thumnbnail name if exists

@param  string  $path file path
@param  array   $stat file stat
@return string|false
@author Dmitry (dio) Levashov
Return thumnbnail name if exists