|
@@ -260,8 +260,8 @@ if (file_exists(DEVICE_TMPL_DIR.'/device.tmpl')) {
|
|
|
if (file_exists(DEVICE_TMPL_DIR.'/'.$found_pid.'/device.tmpl')) {
|
|
|
$contents .= file_get_contents(DEVICE_TMPL_DIR.'/'.$found_pid.'/device.tmpl');
|
|
|
}
|
|
|
-if (file_exists(DEVICE_TMP_DIR.'/device-overrides/'.$row['hostname'].'-device.tmpl')) {
|
|
|
- $contents .= file_get_contents(DEVICE_TMP_DIR.'/device-overrides/'.$row['hostname'].'-device.tmpl');
|
|
|
+if (file_exists(DEVICE_TMPL_DIR.'/device-overrides/'.$row['hostname'].'-device.tmpl')) {
|
|
|
+ $contents .= file_get_contents(DEVICE_TMPL_DIR.'/device-overrides/'.$row['hostname'].'-device.tmpl');
|
|
|
}
|
|
|
$contents .= "end\n";
|
|
|
|