1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-27 17:49:27 +02:00

[ticket/11388] INCLUDEJS supports //(url)

PHPBB3-11388
This commit is contained in:
Nathaniel Guse 2013-07-11 08:36:16 -05:00
parent 8d8979eda7
commit 99c7483ade

View File

@ -48,7 +48,7 @@ class phpbb_template_twig_node_includeasset extends Twig_Node
->write("\$argument_string .= '&assets_version=" . $config['assets_version'] . "';\n")
->outdent()
->write("}\n")
->write("if (strpos(\$asset_file, 'http://') !== 0 && strpos(\$asset_file, 'https://') !== 0 && !file_exists(\$asset_file)) {\n")
->write("if (strpos(\$asset_file, '//') !== 0 && strpos(\$asset_file, 'http://') !== 0 && strpos(\$asset_file, 'https://') !== 0 && !file_exists(\$asset_file)) {\n")
->indent()
->write("\$asset_file = \$this->getEnvironment()->getLoader()->getCacheKey(\$asset_file);\n")
->outdent()