From f0e4210f3af9c8c0071acfc16aac0f503e8c174a Mon Sep 17 00:00:00 2001 From: rurban Date: Fri, 22 Dec 2006 17:53:55 +0000 Subject: [PATCH] Remove action from edited url move wikitohtml to lib/WysiwygEdit/Wikiwyg.php git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@5239 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/main.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/main.php b/lib/main.php index dbd64ad59..41f863311 100644 --- a/lib/main.php +++ b/lib/main.php @@ -1,5 +1,5 @@ getArg('action'); if (!empty($HTTP_GET_VARS['start_debug'])) // zend ide support return WikiURL($pagename, array('action' => $action, 'start_debug' => 1)); + elseif ($action == 'edit') + return WikiURL($pagename); else return WikiURL($pagename, array('action' => $action)); } @@ -1146,7 +1148,7 @@ class WikiRequest extends Request { } function action_wikitohtml () { - include_once("lib/WikiToHtml.php"); + include_once("lib/WysiwygEdit/Wikiwyg.php"); $wikitohtml = new WikiToHtml( $this->getArg("content") , $this); $wikitohtml->send(); } @@ -1291,6 +1293,9 @@ if (!defined('PHPWIKI_NOMAIN') or !PHPWIKI_NOMAIN) // $Log: not supported by cvs2svn $ +// Revision 1.226 2006/09/06 06:01:45 rurban +// minor cleanup +// // Revision 1.225 2006/05/31 19:59:57 jeannicolas // // -- 2.45.0