equal
deleted
inserted
replaced
162 } |
162 } |
163 |
163 |
164 $template->load_theme(); |
164 $template->load_theme(); |
165 $return['toolbar_templates'] = $template->extract_vars('toolbar.tpl'); |
165 $return['toolbar_templates'] = $template->extract_vars('toolbar.tpl'); |
166 $return['edit_notice'] = $template->get_wiki_edit_notice(); |
166 $return['edit_notice'] = $template->get_wiki_edit_notice(); |
|
167 |
|
168 $code = $plugins->setHook('ajax_getsource_send_data'); |
|
169 foreach ( $code as $cmd ) |
|
170 { |
|
171 eval($cmd); |
|
172 } |
167 |
173 |
168 echo enano_json_encode($return); |
174 echo enano_json_encode($return); |
169 break; |
175 break; |
170 case "getpage": |
176 case "getpage": |
171 // echo PageUtils::getpage($paths->page, false, ( (isset($_GET['oldid'])) ? $_GET['oldid'] : false )); |
177 // echo PageUtils::getpage($paths->page, false, ( (isset($_GET['oldid'])) ? $_GET['oldid'] : false )); |
316 } |
322 } |
317 } |
323 } |
318 |
324 |
319 // Verification complete. Start the PageProcessor and let it do the dirty work for us. |
325 // Verification complete. Start the PageProcessor and let it do the dirty work for us. |
320 $page = new PageProcessor($paths->page_id, $paths->namespace); |
326 $page = new PageProcessor($paths->page_id, $paths->namespace); |
321 if ( $page->update_page($request['src'], $request['summary'], ( $request['minor_edit'] == 1 ), $request['format']) ) |
327 if ( $page->update_page($request['src'], $request['summary'], ( $request['minor_edit'] == 1 ), $request['format'], $request) ) |
322 { |
328 { |
323 $return = array( |
329 $return = array( |
324 'mode' => 'success', |
330 'mode' => 'success', |
325 'is_draft' => false |
331 'is_draft' => false |
326 ); |
332 ); |