mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
Merge pull request #1519 from cyberalien/ticket/11647
Fix INCLUDEJS URLs handling
This commit is contained in:
@@ -26,19 +26,15 @@ class phpbb_template_template_includejs_test extends phpbb_template_template_tes
|
||||
),
|
||||
array(
|
||||
array('TEST' => 2),
|
||||
'<script type="text/javascript" src="' . $this->test_path . '/templates/parent_and_child.js?assets_version=0&assets_version=1"></script>',
|
||||
'<script type="text/javascript" src="' . $this->test_path . '/templates/parent_and_child.js?assets_version=0"></script>',
|
||||
),
|
||||
array(
|
||||
array('TEST' => 3),
|
||||
'<script type="text/javascript" src="' . $this->test_path . '/templates/parent_and_child.js?test=1&assets_version=0&assets_version=1"></script>',
|
||||
'<script type="text/javascript" src="' . $this->test_path . '/templates/parent_and_child.js?test=1&assets_version=0"></script>',
|
||||
),
|
||||
array(
|
||||
array('TEST' => 4),
|
||||
'<script type="text/javascript" src="' . $this->test_path . '/templates/parent_and_child.js?test=1&assets_version=0&assets_version=1"></script>',
|
||||
),
|
||||
array(
|
||||
array('TEST' => 5),
|
||||
'<script type="text/javascript" src="' . $this->test_path . '/templates/parent_and_child.js?test=1;assets_version=0&assets_version=1"></script>',
|
||||
'<script type="text/javascript" src="' . $this->test_path . '/templates/parent_and_child.js?test=1&assets_version=0"></script>',
|
||||
),
|
||||
array(
|
||||
array('TEST' => 6),
|
||||
@@ -62,19 +58,15 @@ class phpbb_template_template_includejs_test extends phpbb_template_template_tes
|
||||
),
|
||||
array(
|
||||
array('TEST' => 11),
|
||||
'<script type="text/javascript" src="' . $this->test_path . '/templates/child_only.js?test1=1&test2=2&assets_version=1#test3"></script>',
|
||||
'<script type="text/javascript" src="' . $this->test_path . '/templates/child_only.js?test1=1&test2=2&assets_version=1#test3"></script>',
|
||||
),
|
||||
array(
|
||||
array('TEST' => 12),
|
||||
'<script type="text/javascript" src="' . $this->test_path . '/parent_templates/parent_only.js?test1=1&test2=2&assets_version=1#test3"></script>',
|
||||
),
|
||||
array(
|
||||
array('TEST' => 13),
|
||||
'<script type="text/javascript" src="' . $this->test_path . '/parent_templates/parent_only.js?test1=1;test2=2&assets_version=1#test3"></script>',
|
||||
'<script type="text/javascript" src="' . $this->test_path . '/parent_templates/parent_only.js?test1=1&test2=2&assets_version=1#test3"></script>',
|
||||
),
|
||||
array(
|
||||
array('TEST' => 14),
|
||||
'<script type="text/javascript" src="' . $this->test_path . '/parent_templates/parent_only.js?test1="&assets_version=1#test3"></script>',
|
||||
'<script type="text/javascript" src="' . $this->test_path . '/parent_templates/parent_only.js?test1="&assets_version=1#test3"></script>',
|
||||
),
|
||||
array(
|
||||
array('TEST' => 15),
|
||||
@@ -82,12 +74,16 @@ class phpbb_template_template_includejs_test extends phpbb_template_template_tes
|
||||
),
|
||||
array(
|
||||
array('TEST' => 16),
|
||||
'<script type="text/javascript" src="http://phpbb.com/b.js?c=d&assets_version=1#f"></script>',
|
||||
'<script type="text/javascript" src="http://phpbb.com/b.js?c=d&assets_version=2#f"></script>',
|
||||
),
|
||||
array(
|
||||
array('TEST' => 17),
|
||||
'<script type="text/javascript" src="//phpbb.com/b.js"></script>',
|
||||
),
|
||||
array(
|
||||
array('TEST' => 18),
|
||||
'<script type="text/javascript" src="' . $this->test_path . '/templates/parent_and_child.js?test=1&test2=0&assets_version=1"></script>',
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
@@ -6,8 +6,6 @@
|
||||
<!-- INCLUDEJS parent_and_child.js?test=1&assets_version=0 -->
|
||||
<!-- ELSEIF TEST === 4 -->
|
||||
<!-- INCLUDEJS parent_and_child.js?test=1&assets_version=0 -->
|
||||
<!-- ELSEIF TEST === 5 -->
|
||||
<!-- INCLUDEJS parent_and_child.js?test=1;assets_version=0 -->
|
||||
<!-- ELSEIF TEST === 6 -->
|
||||
<!-- INCLUDEJS {PARENT} -->
|
||||
<!-- ELSEIF TEST === 7 -->
|
||||
@@ -24,15 +22,15 @@
|
||||
<!-- INCLUDEJS {$TEST} -->
|
||||
<!-- ELSEIF TEST === 12 -->
|
||||
<!-- INCLUDEJS parent_only.js?test1=1&test2=2#test3 -->
|
||||
<!-- ELSEIF TEST === 13 -->
|
||||
<!-- INCLUDEJS parent_only.js?test1=1;test2=2#test3 -->
|
||||
<!-- ELSEIF TEST === 14 -->
|
||||
<!-- INCLUDEJS parent_only.js?test1="#test3 -->
|
||||
<!-- ELSEIF TEST === 15 -->
|
||||
<!-- INCLUDEJS http://phpbb.com/b.js?c=d#f -->
|
||||
<!-- ELSEIF TEST === 16 -->
|
||||
<!-- INCLUDEJS http://phpbb.com/b.js?c=d&assets_version=1#f -->
|
||||
<!-- INCLUDEJS http://phpbb.com/b.js?c=d&assets_version=2#f -->
|
||||
<!-- ELSEIF TEST === 17 -->
|
||||
<!-- INCLUDEJS //phpbb.com/b.js -->
|
||||
<!-- ELSEIF TEST === 18 -->
|
||||
<!-- INCLUDEJS parent_and_child.js?test=1&test2=0 -->
|
||||
<!-- ENDIF -->
|
||||
{$SCRIPTS}
|
||||
|
Reference in New Issue
Block a user