KD2 Framework  Check-in [f6f127ffbf]

Overview
Comment:Smartyer: try to fix for Windows
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | 7.3
Files: files | file ages | folders
SHA1: f6f127ffbf4680d309c39dbc414465133da7cfe0
User & Date: bohwaz on 2021-11-23 21:47:50
Other Links: branch diff | manifest | tags
Context
2021-11-30
18:08
SVG graphs: add bar graphs check-in: 269e9aa958 user: bohwaz tags: 7.3
2021-11-23
21:47
Smartyer: try to fix for Windows check-in: f6f127ffbf user: bohwaz tags: 7.3
2021-11-22
21:45
FossilInstaller: fix update of ignored files check-in: 3c43924345 user: bohwaz tags: 7.3
Changes

Modified src/lib/KD2/Smartyer.php from [daec388052] to [e7e7140212].

319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
			{
				$this->template_path = $this->template;
			}
			else
			{
				$this->template_path = $this->templates_dir . DIRECTORY_SEPARATOR . $this->template;
			}

			// Make sure template path is correctly configured for the current platform (Windows bug)
			$this->template_path = str_replace('/', DIRECTORY_SEPARATOR, $this->template_path);
		}

		if (!is_null($this->template_path) && (!is_file($this->template_path) || !is_readable($this->template_path)))
		{
			throw new \RuntimeException('Template file doesn\'t exist or is not readable: ' . $this->template_path);
		}








<
<
<







319
320
321
322
323
324
325



326
327
328
329
330
331
332
			{
				$this->template_path = $this->template;
			}
			else
			{
				$this->template_path = $this->templates_dir . DIRECTORY_SEPARATOR . $this->template;
			}



		}

		if (!is_null($this->template_path) && (!is_file($this->template_path) || !is_readable($this->template_path)))
		{
			throw new \RuntimeException('Template file doesn\'t exist or is not readable: ' . $this->template_path);
		}