Overview
Comment:Always change modified time when editing a page fix [feec2edb912f0046]
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | dev
Files: files | file ages | folders
SHA3-256: 84780be96118c76523c62c401a9440152e0626135cc492778d6a3d08898c3107
User & Date: bohwaz on 2021-04-05 14:28:09
Other Links: branch diff | manifest | tags
Context
2021-04-05
21:30
Fix keep alive, fix [7d1ab532b109a467477a542c0de38bc7e12fb14c] check-in: 1e3fd4e542 user: bohwaz tags: dev
14:28
Always change modified time when editing a page fix [feec2edb912f0046] check-in: 84780be961 user: bohwaz tags: dev
14:05
Fix typo check-in: b0721cd17b user: bohwaz tags: dev
Changes

Modified src/include/lib/Garradin/Entities/Web/Page.php from [e9e7fc4699] to [0aec54d411].

176
177
178
179
180
181
182
183

184

185
186
187
188
189
190
191
		}

		if (!$this->file()) {
			$file = $this->_file = File::createAndStore(Utils::dirname($target), Utils::basename($target), null, $export);
			$this->set('modified', new \DateTime);
		}
		elseif ($this->file()->fetch() !== $export) {
			$this->file()->store(null, $this->export());

			$this->set('modified', $this->file()->modified);

		}

		$this->syncSearch();
	}

	public function syncSearch(): void
	{







|
>
|
>







176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
		}

		if (!$this->file()) {
			$file = $this->_file = File::createAndStore(Utils::dirname($target), Utils::basename($target), null, $export);
			$this->set('modified', new \DateTime);
		}
		elseif ($this->file()->fetch() !== $export) {
			$file = $this->file();
			$file->set('modified', new \DateTime);
			$this->set('modified', clone $file->modified);
			$file->store(null, $this->export());
		}

		$this->syncSearch();
	}

	public function syncSearch(): void
	{