opengeek/getResources — pull request #62 by splittingred (2012-02-29 15:28:46+00:00)
Title: Add media-source preparation compatibility, update .gitignore for IDEs

Currently in Revo 2.2, image/file TVs have to be processed with &processTVs to get their full URLs prepended due to the changes in 2.2 for media sources (the media source base path is prefixed).

This PR solves this by using the $templateVar->prepareOutput($value) method, which doesn't actually process the TV (->renderOutput actually calls this inside), but uses the cached data of the Media Source to prefix the base path. Since all the data is cached, the execution time of this is negligible.

Furthermore, this will work in 2.1, because this PR checks to make sure that the prepareOutput method exists before running it; if it doesn't, the call is ignored and all goes as normal.