Skip to content

Commit 3a93952

Browse files
author
Marius Burkard
committed
Move custom php in front of snippet data
1 parent 4e7b365 commit 3a93952

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/plugins-available/apache2_plugin.inc.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1256,6 +1256,8 @@ function update($event_name, $data) {
12561256

12571257
$php_ini_content = $this->get_master_php_ini_content($data['new']);
12581258

1259+
$php_ini_content .= "\n".str_replace("\r", '', trim($data['new']['custom_php_ini']));
1260+
12591261
if(intval($data['new']['directive_snippets_id']) > 0){
12601262
$snippet = $app->db->queryOneRecord("SELECT * FROM directive_snippets WHERE directive_snippets_id = ? AND type = 'apache' AND active = 'y' AND customer_viewable = 'y'", intval($data['new']['directive_snippets_id']));
12611263
if(isset($snippet['required_php_snippets']) && trim($snippet['required_php_snippets']) != ''){
@@ -1275,7 +1277,6 @@ function update($event_name, $data) {
12751277
}
12761278
}
12771279
}
1278-
$php_ini_content .= "\n".str_replace("\r", '', trim($data['new']['custom_php_ini']));
12791280

12801281
$custom_sendmail_path = false;
12811282
$line = strtok($php_ini_content, '\n');

0 commit comments

Comments
 (0)