  def create_local
    Log.add_info(request, params.inspect)

    return unless request.post?

    @tmpl_folder, @tmpl_local_folder = TemplatesHelper.get_tmpl_subfolder(TemplatesHelper::TMPL_LOCAL)

    unless @tmpl_local_folder.nil?
      item = Item.new_info(@tmpl_local_folder.id)
      item.title = t('template.new')
      item.user_id = 0
      item.save!
    else
      Log.add_error(request, nil, '/'+TemplatesHelper::TMPL_ROOT+'/'+TemplatesHelper::TMPL_LOCAL+' NOT found!')
    end

    render(:partial => 'ajax_local', :layout => false)
  end
The software constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component.