From: Sabri L. <sab...@st...> - 2007-05-31 14:44:55
|
Hi all, If I edit a page in Phpwiki then save it. The 'action=3Dedit' url = parameter still there. Can some one tell how to remove/unset it? Thanks, -- Sabri. |
From: Reini U. <ru...@x-...> - 2007-06-01 18:30:50
|
it's not easy. if so I would have done it years ago. (around 2003) you can search the archives how jeff tried to get rid of it, and/or i introduced it again somehow. 2007/5/31, Sabri LABBENE <sab...@st...>: > Hi all, > > If I edit a page in Phpwiki then save it. The 'action=edit' url parameter still there. Can some one tell how to remove/unset it? -- Reini Urban http://phpwiki.org/ http://murbreak.at/ http://spacemovie.mur.at/ http://helsinki.at/ |
From: Sabri L. <sab...@st...> - 2007-06-02 07:56:42
|
Reini Urban wrote: >it's not easy. >if so I would have done it years ago. (around 2003) > >you can search the archives how jeff tried to get rid of it, >and/or i introduced it again somehow. Ok. Personally I tried to remove/unset it but I can't. Unfortunately this parameter causes problems for me... Anyway, I'll try to live with it until I'll get a solution to remove it. Thanks, -- Sabri. >2007/5/31, Sabri LABBENE <sab...@st...>: >> Hi all, >> >> If I edit a page in Phpwiki then save it. The 'action=edit' >url parameter still there. Can some one tell how to remove/unset it? >-- >Reini Urban >http://phpwiki.org/ http://murbreak.at/ >http://spacemovie.mur.at/ http://helsinki.at/ > >--------------------------------------------------------------- >---------- >This SF.net email is sponsored by DB2 Express Download DB2 >Express C - the FREE version of DB2 express and take control >of your XML. No limits. Just data. Click to get it now. >http://sourceforge.net/powerbar/db2/ >_______________________________________________ >Phpwiki-talk mailing list >Php...@li... >https://lists.sourceforge.net/lists/listinfo/phpwiki-talk > |
From: Sabri L. <sab...@st...> - 2007-06-02 10:01:36
|
Sabri LABBENE wrote: >Reini Urban wrote: >>it's not easy. >>if so I would have done it years ago. (around 2003) >> >>you can search the archives how jeff tried to get rid of it, and/or i >>introduced it again somehow. > >Ok. Personally I tried to remove/unset it but I can't. >Unfortunately this parameter causes problems for me... Anyway, >I'll try to live with it until I'll get a solution to remove it. In editpage.php (function savePage()) at line ~317 there is a : //$request->setArg('action', false); When I uncommented that line, 'action=edit' parameter has gone but only once. I edit another time then save and the parameter stay there as before + a Notice: In template 'head':51: Notice: Undefined index: action: * $action = $args['action']; >>2007/5/31, Sabri LABBENE <sab...@st...>: >>> Hi all, >>> >>> If I edit a page in Phpwiki then save it. The 'action=edit' >>url parameter still there. Can some one tell how to remove/unset it? >>-- >>Reini Urban >>http://phpwiki.org/ http://murbreak.at/ >>http://spacemovie.mur.at/ http://helsinki.at/ >> >>--------------------------------------------------------------- >>---------- >>This SF.net email is sponsored by DB2 Express Download DB2 >Express C - >>the FREE version of DB2 express and take control of your XML. No >>limits. Just data. Click to get it now. >>http://sourceforge.net/powerbar/db2/ >>_______________________________________________ >>Phpwiki-talk mailing list >>Php...@li... >>https://lists.sourceforge.net/lists/listinfo/phpwiki-talk >> > > >--------------------------------------------------------------- >---------- >This SF.net email is sponsored by DB2 Express Download DB2 >Express C - the FREE version of DB2 express and take control >of your XML. No limits. Just data. Click to get it now. >http://sourceforge.net/powerbar/db2/ >_______________________________________________ >Phpwiki-talk mailing list >Php...@li... >https://lists.sourceforge.net/lists/listinfo/phpwiki-talk > |
From: Reini U. <ru...@x-...> - 2007-06-03 20:58:48
|
Sabri LABBENE schrieb: > > Sabri LABBENE wrote: >> Reini Urban wrote: >>> it's not easy. >>> if so I would have done it years ago. (around 2003) >>> >>> you can search the archives how jeff tried to get rid of it, and/or i >>> introduced it again somehow. >> Ok. Personally I tried to remove/unset it but I can't. >> Unfortunately this parameter causes problems for me... Anyway, >> I'll try to live with it until I'll get a solution to remove it. > > In editpage.php (function savePage()) at line ~317 there is a : > //$request->setArg('action', false); > When I uncommented that line, 'action=edit' parameter has gone but only > once. I edit another time then save and the parameter stay there as before + > a Notice: > > In template 'head':51: Notice: Undefined index: action: > > * $action = $args['action']; This is easy to fix :) Ok, I just checked the logic. Whenever you have the theme signature defined or a save warning, the action=edit will be sticky, because then we do no redirect. Without signature and no warning the request is redirected and the action=edit will be gone. We need it to support more than one submit button. We have Save, Preview and lateron maybe Changes and Upload. For the later three we need "edit", unless we do some js tricks to submit the form from the button, enabling edit only there. This is what we wanted to avoid. But I'll test that idea. -- Reini Urban http://phpwiki.org/ http://murbreak.at/ http://helsinki.at/ http://spacemovie.mur.at/ |