| @@ 45-51 (lines=7) @@ | ||
| 42 | $file = $dir . '_prefix_' . $pid . '.tpl'; |
|
| 43 | ||
| 44 | $tplfiles = $tplfileHandler->find('default', 'module', $mid, $dir, $file, false); |
|
| 45 | if (count($tplfiles)) { |
|
| 46 | $tplfile = $tplfiles[0]; |
|
| 47 | $isnew = false; |
|
| 48 | } else { |
|
| 49 | $tplfile = $tplfileHandler->create(); |
|
| 50 | $isnew = true; |
|
| 51 | } |
|
| 52 | ||
| 53 | $tplfile->setVar('tpl_source', $template['template_body'], true); |
|
| 54 | $tplfile->setVar('tpl_refid', $mid); |
|
| @@ 387-393 (lines=7) @@ | ||
| 384 | return null; |
|
| 385 | } |
|
| 386 | ||
| 387 | if (count($tplfiles)) { |
|
| 388 | $tplfile = $tplfiles[0]; |
|
| 389 | $isnew = false; |
|
| 390 | } else { |
|
| 391 | $tplfile = $tplfileHandler->create(); |
|
| 392 | $isnew = true; |
|
| 393 | } |
|
| 394 | ||
| 395 | $tplfile->setVar('tpl_source', $template['template_body'], true); |
|
| 396 | $tplfile->setVar('tpl_refid', $mid); |
|