Skip to content

Commit

Permalink
Merge pull request #20 from argiepiano/1.x-1.x-issue-18
Browse files Browse the repository at this point in the history
Issue #18. pass the absolute path to parse_ini_file
  • Loading branch information
robertgarrigos authored Aug 26, 2023
2 parents cd7d8ec + cd6600b commit 686e9de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion demo.admin.inc
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,8 @@ function demo_get_info($filename, $field = NULL) {
$info = array();

if (file_exists($filename)) {
$info = parse_ini_file($filename);
$absolute_file_path = backdrop_realpath($filename);
$info = parse_ini_file($absolute_file_path);

if (isset($info['modules'])) {
$info['modules'] = explode(" ", $info['modules']);
Expand Down

0 comments on commit 686e9de

Please sign in to comment.