Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117378582
D901.1774820525.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
701 B
Referenced Files
None
Subscribers
None
D901.1774820525.diff
View Options
diff --git a/lib/file_ui_output.php b/lib/file_ui_output.php
--- a/lib/file_ui_output.php
+++ b/lib/file_ui_output.php
@@ -146,7 +146,7 @@
}
$this->env['skin_path'] = 'skins/' . $this->skin . '/';
- $script = '';
+ $script = array();
if (!empty($this->env)) {
$script[] = 'ui.set_env(' . json_encode($this->env) . ');';
@@ -172,7 +172,7 @@
}
$this->tpl->assign('skin_path', $this->env['skin_path']);
- if ($script) {
+ if (!empty($script)) {
$script = "<script type=\"text/javascript\">\n" . implode("\n", $script) . "\n</script>";
$this->tpl->assign('script', $script);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 29, 9:42 PM (3 d, 9 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18775941
Default Alt Text
D901.1774820525.diff (701 B)
Attached To
Mode
D901: initialize script variable correct as array. Fixes T5740
Attached
Detach File
Event Timeline