mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-25 10:09:20 +03:00
Remote Synchronization (CardDAV) improvements:
now it supports address book url auto detection (and works with Google contacts, icloud and etc.)
This commit is contained in:
parent
92f2caf700
commit
1fb553e77e
249 changed files with 1338 additions and 1453 deletions
|
|
@ -27,11 +27,6 @@ abstract class PHPThumb
|
|||
*/
|
||||
protected $fileName;
|
||||
|
||||
/**
|
||||
* @var \Symfony\Component\Filesystem\Filesystem
|
||||
*/
|
||||
protected $filesystem;
|
||||
|
||||
/**
|
||||
* What the file format is (mime-type)
|
||||
*
|
||||
|
|
@ -59,7 +54,6 @@ abstract class PHPThumb
|
|||
*/
|
||||
public function __construct($fileName, array $options = array(), array $plugins = array())
|
||||
{
|
||||
$this->filesystem = new \Symfony\Component\Filesystem\Filesystem();
|
||||
$this->fileName = $fileName;
|
||||
$this->remoteImage = false;
|
||||
|
||||
|
|
@ -89,9 +83,9 @@ abstract class PHPThumb
|
|||
return true;
|
||||
}
|
||||
|
||||
if($this->filesystem->exists($filename)) {
|
||||
return true;
|
||||
}
|
||||
if (file_exists($filename)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue