Skip to content

Instantly share code, notes, and snippets.

@low
Created June 28, 2010 12:07
Show Gist options
  • Select an option

  • Save low/455761 to your computer and use it in GitHub Desktop.

Select an option

Save low/455761 to your computer and use it in GitHub Desktop.

Revisions

  1. low created this gist Jun 28, 2010.
    13 changes: 13 additions & 0 deletions Passing through errors in EE2
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    if ( ! empty($errors) )
    {
    $msg = array();

    foreach ($errors AS $line)
    {
    $msg[] = $this->EE->lang->line($line);
    }

    $this->EE->session->set_flashdata('errors', $msg);
    $this->EE->functions->redirect($return_url);
    exit;
    }