Changeset 1612

Show
Ignore:
Timestamp:
08/06/08 07:42:12 (4 months ago)
Author:
misja
Message:

Applied attachment:ticket:382:elggadmin.diff, fixes #382

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/mod/elggadmin/lib/elggadmin.inc.php

    r1587 r1612  
    7474    global $CFG; 
    7575 
    76     $sucess = false; 
     76    $success = false; 
     77 
     78    // do not do anything if form key is incorrect 
     79    if (!elggform_key_check(optional_param('form_key'), 'elgg' . $page)) return; 
     80 
    7781    $action = optional_param('action'); 
    7882 
     
    148152                                } 
    149153                                elgg_messages_add(sprintf(__gettext('%s option updated'), $allowed[$name]->name)); 
    150                                 $sucess = true; 
     154                                $success = true; 
    151155                            } 
    152156                        } 
     
    184188    } 
    185189 
    186     if ($sucess) { 
     190    if ($success) { 
    187191        header_redirect(get_url(null, 'elggadmin::'.$page)); 
    188192    }