summaryrefslogtreecommitdiffstats
path: root/options/license/CC-BY-NC-SA-3.0-DE
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2022-01-07 00:41:31 -0800
committerGitHub <noreply@github.com>2022-01-07 16:41:31 +0800
commit3dbdf36d952678aafd1dac1a9fccce51bdbb8fc0 (patch)
tree4b083828242277506a7b47de80cdb8bb8db617d3 /options/license/CC-BY-NC-SA-3.0-DE
parent80705cf4b4ecbbeb4d9636bfa105cf87625b06b5 (diff)
downloadgitea-3dbdf36d952678aafd1dac1a9fccce51bdbb8fc0.tar.gz
gitea-3dbdf36d952678aafd1dac1a9fccce51bdbb8fc0.zip
Fix CSS specificity issue with easymde's css (#18201)
* Fix CSS specificity issue with easymde's css PR #18069 introduced a regression in certain overwritten editor styles because the dynamic loading of easymde.min.css causes its's style to apply after our supposed override styles. Solve this by bundling the styles into index.css. We should later aim to completely replace easymde.min.css completely with our own styles so there are no more conflicts. * Update web_src/js/features/comp/EasyMDE.js Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'options/license/CC-BY-NC-SA-3.0-DE')
0 files changed, 0 insertions, 0 deletions
-cert-bundle Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Lock/LockedException.php
blob: ec7701523fb9cd437329d1e52823d54105a83695 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?php

declare(strict_types=1);

/**
 * @copyright Copyright (c) 2016, ownCloud, Inc.
 *
 * @author Lukas Reschke <lukas@statuscode.ch>
 * @author Morris Jobke <hey@morrisjobke.de>
 * @author Robin Appelman <robin@icewind.nl>
 * @author Roeland Jago Douma <roeland@famdouma.nl>
 * @author Vincent Petry <vincent@nextcloud.com>
 *
 * @license AGPL-3.0
 *
 * This code is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License, version 3,
 * as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License, version 3,
 * along with this program. If not, see <http://www.gnu.org/licenses/>
 *
 */
namespace OCP\Lock;

/**
 * Class LockedException
 *
 * @since 8.1.0
 */
class LockedException extends \Exception {
	/**
	 * Locked path
	 *
	 * @var string
	 */
	private $path;

	/** @var string|null */
	private $existingLock;

	/**
	 * LockedException constructor.
	 *
	 * @param string $path locked path
	 * @param \Exception|null $previous previous exception for cascading
	 * @param string $existingLock since 14.0.0
	 * @param string $readablePath since 20.0.0
	 * @since 8.1.0
	 */
	public function __construct(string $path, \Exception $previous = null, string $existingLock = null, string $readablePath = null) {
		if ($readablePath) {
			$message = "\"$path\"(\"$readablePath\") is locked";
		} else {
			$message = '"' . $path . '" is locked';
		}
		$this->existingLock = $existingLock;
		if ($existingLock) {
			$message .= ', existing lock on file: ' . $existingLock;
		}
		parent::__construct($message, 0, $previous);
		$this->path = $path;
	}

	/**
	 * @return string
	 * @since 8.1.0
	 */
	public function getPath(): string {
		return $this->path;
	}

	/**
	 * @return string
	 * @since 19.0.0
	 */
	public function getExistingLock(): ?string {
		return $this->existingLock;
	}
}