[ewiki] Re: mpi_insert: bug?
- From: Mario Salzer <mario@xxxxxxxxxxxxx>
- To: ewiki@xxxxxxxxxxxxx
- Date: Tue, 25 May 2004 23:32:49 +0200
> I'm having problems w/ the mpi_insert-plugin. When inserting by < ? plugin
> insert publications ? > it messes up pagename and title. Seems like
> ==plugins/mpi/mpi_insert.php== overwrites ==$GLOBALS==, though they are saved
> and written back. I am using $GLOBALS["ewiki_id"] in my index.php-page.
>
> I've tried saving all global variables employed by ewiki_page(), which is
> called in mpi_insert, and writing them back afterwards individually. That
> didn't work either.
The problem appears to be that there are variable references in
ewiki_page() and by simply "saving" and "restoring" the $GLOBALS
into a temporary array variable, those got lost.
I've now added a more selective approach to keep old $GLOBALS,
and this seems to work better, though it can't know about all
possibly used variables (third party plugins may use other global
variables, which couldn't be restored then).
mario
- References:
- [ewiki] mpi_insert: bug?
- From: massenmensch
Other related posts:
- » [ewiki] mpi_insert: bug?
- » [ewiki] Re: mpi_insert: bug?
- [ewiki] mpi_insert: bug?
- From: massenmensch