[pmwiki-users] sectionedit on local xampp installation

noskule noskule at gmx.net
Fri Feb 10 04:21:37 CST 2006


hi list

I use a local lamp installation ( http://xampp.org, on ubuntu, debian)
on my computer to customise pmwiki. The only thing that gives me an
error is the sectionedit plugin.

Warning: array_merge() [function.array-merge]: Argument #2 is not an
array in /opt/lampp/htdocs/netstreams/cookbook/sectionedit.php on line
256


/***Check text for includes within and collect pagenames (helper
function)*/
function SectionEditCheckForIncludes($pagename,$text) {
	global $SectionEditIncludes;
	/*check whether checked page is in list, then add included pages*/
	if (in_array($pagename,$SectionEditIncludes) || ($pagename =='')) {
		/*get all occurences of (:include...:)*/
		preg_match_all('/\\(:include\\s+(\\S.*?):\\)/',$text,$args);
		/*create list of pagenames*/
		$args = ParseArgs(implode(" ",$args[1]));
		/*create array only containing pagenames*/
256->		$SectionEditIncludes = array_merge($SectionEditIncludes,
$args['']);
		/*remove double page entries*/
		$SectionEditIncludes = array_unique($SectionEditIncludes);
	}
	return;
}



Thats kind of strange cause it works fine on my hosting acount. Also I
use some other plugins they work fine. Does anyone have an idea whats
the problem here?

Thanks for any suggestions
nos





-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20060210/ec1ba7de/attachment.html 


More information about the pmwiki-users mailing list