moved timestamp so it sets 'after' processing any forms

This commit is contained in:
Andy Miller
2016-03-03 14:58:11 -07:00
parent 54f6b51d61
commit 6f63796f2f

View File

@@ -368,6 +368,9 @@ class AdminPlugin extends Plugin
throw new \RuntimeException('Page Not Found', 404);
}
}
// Explicitly set a timestamp on assets
$this->grav['assets']->setTimestamp(substr(md5(GRAV_VERSION . $this->grav['config']->checksum()),0,10));
}
/**
@@ -377,15 +380,8 @@ class AdminPlugin extends Plugin
{
// Disable Asset pipelining
$assets = $this->grav['assets'];
if (method_exists($assets, 'setJsPipeline')) {
$assets->setJsPipeline(false);
$assets->setCssPipeline(false);
}
// Explicitly set a timestamp on assets
if (method_exists($assets, 'setTimestamp')) {
$assets->setTimestamp(substr(md5(GRAV_VERSION),0,10));
}
$assets->setJsPipeline(false);
$assets->setCssPipeline(false);
}
/**