mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
fix depends being saved in different format from as it's being read (should be ["<scm>:<templateName>" => <time>])
This commit is contained in:
parent
950175ce73
commit
304f44a954
@ -381,7 +381,11 @@ class Template extends Render {
|
||||
* @param Render $tpl
|
||||
*/
|
||||
public function addDepend(Render $tpl) {
|
||||
$this->_depends[$tpl->getScm()][$tpl->getName()] = $tpl->getTime();
|
||||
$name = $tpl->getName();
|
||||
if ($tpl->getScm()) {
|
||||
$name = $tpl->getScm() . ':' . $name;
|
||||
}
|
||||
$this->_depends[$name] = $tpl->getTime();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user