Project

General

Profile

Actions

Bug #5148

closed

Use of bundle "file_ensure_line_present_in_ini_section.cf" to add lines into a section which does not exist will only add the section, not the lines

Added by Nicolas PERRON almost 10 years ago. Updated almost 2 years ago.

Status:
Released
Priority:
N/A
Category:
Generic methods
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

Description

The use of file_ensure_line_present_in_ini_section.cf will only works if the section already exist and is not at the end of the file.
For example, to add a line in the section [my_section2]:
It will not work with a file containing:

[my_section1]

or
[my_section1]
[my_section2]

It will work with a file containing:

[my_section1]
[my_section2]


or
[my_section1]
[my_section2]
#A comment

Actions

Also available in: Atom PDF