ajax.php
changeset 1332 12286b3ee214
parent 1276 dac5fad7ad6a
child 1340 d1d64b373878
--- 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',