diff -r c7d6317c5e82 -r 12286b3ee214 ajax.php --- a/ajax.php Wed Dec 29 13:23:58 2010 -0500 +++ b/ajax.php Wed Dec 29 13:25:32 2010 -0500 @@ -165,6 +165,12 @@ $return['toolbar_templates'] = $template->extract_vars('toolbar.tpl'); $return['edit_notice'] = $template->get_wiki_edit_notice(); + $code = $plugins->setHook('ajax_getsource_send_data'); + foreach ( $code as $cmd ) + { + eval($cmd); + } + echo enano_json_encode($return); break; case "getpage": @@ -318,7 +324,7 @@ // Verification complete. Start the PageProcessor and let it do the dirty work for us. $page = new PageProcessor($paths->page_id, $paths->namespace); - if ( $page->update_page($request['src'], $request['summary'], ( $request['minor_edit'] == 1 ), $request['format']) ) + if ( $page->update_page($request['src'], $request['summary'], ( $request['minor_edit'] == 1 ), $request['format'], $request) ) { $return = array( 'mode' => 'success',