$this->transObj->query('ROLLBACK');
}
+ $cli = HTML_FlexyFramework::get()->cli;
+ if ($cli) {
+ echo "ERROR: " .$str . "\n"; // print the error first, as DB might fail..
+ }
+
if ($type !== false) {
if(!empty($errors)){
$cli = HTML_FlexyFramework::get()->cli;
if ($cli) {
- echo "ERROR: " .$str . "\n";
exit(1); // cli --- exit code to stop shell execution if necessary.
}
$is_bootstrap = in_array('BAdmin', $mods);
foreach($mods as $mod) {
-
- $cls = 'Pman_' . $mod . '_Pman';
-
- if (file_exists($this->rootDir . '/'.str_replace('_','/', $cls). '.php')) {
- require_once str_replace('_','/', $cls). '.php';
- $c = new $cls();
- if (method_exists($c,'outputJavascriptIncludes')) {
- $c->outputOverlayStringJavascript();
- }
- }
+ // add the css file..
if ($is_bootstrap) {
if (!file_exists($this->rootDir."/Pman/$mod/is_bootstrap")) {
$this->outputJavascriptDir("Pman/$mod/widgets", "*.js");
$this->outputJavascriptDir("Pman/$mod", "*.js");
-
}
if (empty($this->disable_jstemplate)) {
// and finally the JsTemplate...
echo '<script type="text/javascript" src="'. $this->baseURL. '/Core/JsTemplate"></script>'."\n";
}
+
+ $this->callModules('outputJavascriptIncludes', $this);
}