Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
forena
Commits
2726fc37
Commit
2726fc37
authored
Aug 17, 2014
by
David Metzler
Browse files
Added path and report data contexts.
parent
e3d925a2
Changes
1
Show whitespace changes
Inline
Side-by-side
forena.module
View file @
2726fc37
...
...
@@ -946,6 +946,9 @@ function forena_report($name_in, $parms = NULL, $print = TRUE, $filename='') {
$time
=
@
new
DateTime
(
$value
);
$desc
[
'time'
]
=
date_format
(
$time
,
'Y-m-d H:i:s'
);
$desc
[
'basepath'
]
=
base_path
();
$desc
[
'path'
]
=
$desc
[
'basepath'
]
.
Frx
::
File
()
->
path
(
$desc
[
'filename'
],
TRUE
);
$desc
[
'theme'
]
=
$desc
[
'basepath'
]
.
drupal_get_path
(
'theme'
,
$GLOBALS
[
'theme'
]);
$desc
[
'q'
]
=
$_GET
[
'q'
];
if
(
!
$desc
[
'exists'
])
{
watchdog
(
'error'
,
'Report %s not found'
,
array
(
'%s'
=>
$name_in
),
WATCHDOG_ERROR
);
if
(
$print
)
{
...
...
@@ -954,7 +957,6 @@ function forena_report($name_in, $parms = NULL, $print = TRUE, $filename='') {
}
return
''
;
}
FrxData
::
instance
()
->
setContext
(
'cookie'
,
$_COOKIE
);
FrxData
::
instance
()
->
setContext
(
'report'
,
$desc
);
$report_name
=
$desc
[
'name'
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment