@@ 64-67 (lines=4) @@ | ||
61 | $tplfile->setVar('tpl_type', 'module'); |
|
62 | ||
63 | if ($isnew) { |
|
64 | if (!$tplfileHandler->insert($tplfile)) { |
|
65 | $module->setErrors('ERROR: Could not insert template ' . htmlspecialchars($file) . ' to the database.'); |
|
66 | $error = true; |
|
67 | } |
|
68 | } else { |
|
69 | if (!$tplfileHandler->forceUpdate($tplfile)) { |
|
70 | $module->setErrors('ERROR: Could not update template ' . htmlspecialchars($file) . ' in the database.'); |
|
@@ 68-73 (lines=6) @@ | ||
65 | $module->setErrors('ERROR: Could not insert template ' . htmlspecialchars($file) . ' to the database.'); |
|
66 | $error = true; |
|
67 | } |
|
68 | } else { |
|
69 | if (!$tplfileHandler->forceUpdate($tplfile)) { |
|
70 | $module->setErrors('ERROR: Could not update template ' . htmlspecialchars($file) . ' in the database.'); |
|
71 | $error = true; |
|
72 | } |
|
73 | } |
|
74 | } |
|
75 | ||
76 | // table alterations - these will quietly fail if already done |