This commit is contained in:
Sam Georges 2014-05-20 10:25:04 +10:00
parent e96a4c684f
commit 193ffade54
1 changed files with 2 additions and 5 deletions

View File

@ -148,7 +148,6 @@ class Index extends Controller
$templateData['markup'] = $this->convertLineEndings($templateData['markup']);
}
if (!Request::input('templateForceSave') && $template->mtime) {
if (Request::input('templateMtime') != $template->mtime)
throw new ApplicationException('mtime-mismatch');
@ -369,12 +368,10 @@ class Index extends Controller
}
/**
* convertLineEndings Replaces Windows style (/r/n) line endings with unix style (/n)
* Replaces Windows style (/r/n) line endings with unix style (/n)
* line endings.
*
* @param string $markup The markup to convert to unix style endings
*
* @return string $markup
* @return string
*/
private function convertLineEndings($markup)
{