modxcms/revolution — pull request #373 by eprochasson (2012-09-20 02:54:03+00:00)
Title: Issue #8556: regClient functions inject more than once

A simple fix, makes the substitution of

just once using PHP function. On a "regular" HTML page, the

should appear on top of the page, before any

tags.

A more complicated fix would be to parse the whole page, build the DOM tree and insert the css/js there, but that seems overly complicated for a function which is eventually just a helper for HTML document (since it has no effect on other types of document -- unless they have a

, which would be strange).