Overview
Comment:Return something for avatar
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | dev
Files: files | file ages | folders
SHA3-256: 34dde2540837594c7e339d2a606f7578e7d00990cfc21aa0318459774e794af2
User & Date: bohwaz on 2022-11-27 04:54:56
Other Links: branch diff | manifest | tags
Context
2022-11-27
05:19
Fix menu on mobile check-in: 6a2260f3de user: bohwaz tags: dev
04:54
Return something for avatar check-in: 34dde25408 user: bohwaz tags: dev
04:42
Fix missing use statements check-in: 07442ef5ff user: bohwaz tags: dev
Changes

Modified src/include/lib/Garradin/Files/WebDAV/NextCloud.php from [7e5371f3f3] to [97a521b8ed].

176
177
178
179
180
181
182
183






		finally {
			$this->deleteChunks($login, $name);
			Utils::safe_unlink($tmp_file);
		}

		return ['created' => !$exists, 'etag' => $file->etag()];
	}
}













|
>
>
>
>
>
>
176
177
178
179
180
181
182
183
184
185
186
187
188
189
		finally {
			$this->deleteChunks($login, $name);
			Utils::safe_unlink($tmp_file);
		}

		return ['created' => !$exists, 'etag' => $file->etag()];
	}

	protected function nc_avatar(): ?array
	{
		header('Location: ' . WWW_URL . '/config/icon.png');
		return null;
	}
}

Modified src/include/lib/Garradin/Web/Skeleton.php from [7acfb1b470] to [312e926512].

10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use Garradin\Config;
use Garradin\Plugin;
use Garradin\Utils;

use KD2\Brindille_Exception;
use KD2\DB\EntityManager as EM;

use const Garradin\ROOT;

class Skeleton
{
	const TEMPLATE_TYPES = '!^(?:text/(?:html|plain)|\w+/(?:\w+\+)?xml)$!';

	protected ?string $path;
	protected ?File $file = null;







|







10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use Garradin\Config;
use Garradin\Plugin;
use Garradin\Utils;

use KD2\Brindille_Exception;
use KD2\DB\EntityManager as EM;

use const Garradin\{ROOT, ADMIN_URL};

class Skeleton
{
	const TEMPLATE_TYPES = '!^(?:text/(?:html|plain)|\w+/(?:\w+\+)?xml)$!';

	protected ?string $path;
	protected ?File $file = null;