From: Reini U. <ru...@x-...> - 2006-03-01 07:15:29
|
Stefan schrieb: > SORRY FORGOT TO DELETE ONE ECHO WITHIN THE FILE > here is the corrected Version > Stefan > > ------ > I've done some changes to SiteMap.php to eleminate a lot of errors and > warnings. The function preg_match was used wrong so i replaced it by a > few lines of code and now it works without error. SiteMap is used from > IncludeSiteMap.php which now works with page names including white space > etc ... Sorry, your version is not all correct. Your problem is that you assume that $this->ExcludedPages = join("|", $exclude); but $this->ExcludedPages = "^(?:" . join("|", $exclude) . ")"; $exclude is a user regular expression, which must be passed to preg_match. But $exclude could be PageList also, if taken from a <!plugin-list !>, so the real fix will be expand a possible pagelist. And of course to quote the linkname as plugin arg as your did, thanks! -- Reini Urban http://phpwiki.org/ http://helsinki.at/ http://spacemovie.mur.at/ |