Skip to content

Commit

Permalink
corrected Asset manager (clearing internal store)
Browse files Browse the repository at this point in the history
  • Loading branch information
niden committed Oct 24, 2023
1 parent 4f7ae6e commit ae2a127
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions phalcon/Assets/Manager.zep
Original file line number Diff line number Diff line change
Expand Up @@ -1008,7 +1008,7 @@ class Manager extends AbstractInjectionAware
string type,
string name
) -> string {
var helper, params, tag;
var helper, output, params, tag;

let params = parameters;

Expand Down Expand Up @@ -1061,6 +1061,13 @@ class Manager extends AbstractInjectionAware
helper->__invoke(""); // no indentation
helper->add(tag, params);

return (string) helper;
let output = (string) helper;

/**
* This is because the helper no longer resets the store automatically
*/
helper->reset();

return output;
}
}

0 comments on commit ae2a127

Please sign in to comment.