Overview
Comment:Fix serve text templates correctly
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | stable
Files: files | file ages | folders
SHA3-256: 5c7595ab15182957a643e937218b6f850be2e53bcd0742da415835f00cf880cb
User & Date: bohwaz on 2021-07-24 16:07:53
Other Links: manifest | tags
Context
2021-08-15
12:37
Rename year export title Fix [77df95c877f5fcfdc2e0d7c679ad72265af03b46] check-in: 642f78a7f1 user: bohwaz tags: trunk, stable
2021-07-24
16:07
Fix serve text templates correctly check-in: 5c7595ab15 user: bohwaz tags: trunk, stable
15:30
Fix stale links, thanks @isabelle check-in: d6c5da0f3d user: bohwaz tags: trunk, stable
Changes

Modified src/include/lib/Garradin/Web/Skeleton.php from [64158a59b8] to [03f267b710].

171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
			return 'text/html';
		}
		elseif ($ext == 'js') {
			return 'text/javascript';
		}

		if ($this->file) {
			return $this->file->type;
  		}

		$finfo = \finfo_open(\FILEINFO_MIME_TYPE);
		return finfo_file($finfo, $this->defaultPath());

	}








|







171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
			return 'text/html';
		}
		elseif ($ext == 'js') {
			return 'text/javascript';
		}

		if ($this->file) {
			return $this->file->mime;
  		}

		$finfo = \finfo_open(\FILEINFO_MIME_TYPE);
		return finfo_file($finfo, $this->defaultPath());

	}