if ( ! $tplfile_handler->insert( $tplfile ) ) {
                        $msgs[] = '<span style="color:#ff0000;">ERROR: Could not insert template <b>' . htmlspecialchars( $mydirname . '_' . $file ) . '</b> to the database.</span>';
                    } else {
                        $tplid  = $tplfile->getVar( 'tpl_id' );
                        $msgs[] = 'Template <b>' . htmlspecialchars( $mydirname . '_' . $file ) . '</b> added to the database. (ID: <b>' . $tplid . '</b>)';