Re: MultiSite Module Support Forum
Quote:
Originally Posted by
ideasgirl
Hello, I've been using this module since version 1.0 and I'm doing an update from 1.5.5 to 2.1
The logs will show an error unless I change the line 29 of admin/multisite.php
from this:
PHP Code:
while($multisite_cat_desc[0]=="\n") {
to this:
PHP Code:
while (!empty($multisite_cat_desc) && $multisite_cat_desc[0] == "\n") {
Also, when assigning categories on the MultiSite Tool, I have a ">->-" before the name of the site assigned. In the previous version, those symbols didn't appear there. Is there a way to get rid of them?
I figured out the >->- issue I think.
In YOUR_ADMIN/multsite.php, around line 224
change -
$multisite_cat_sites[]=substr($multisite_comment,4,strlen($multisite_comment)-4); //remove html comment
to this -
$multisite_cat_sites[]=substr($multisite_comment,4,strlen($multisite_comment)-5); //remove html comment
this wont clean up the mess, but should prevent it happening further.
Re: MultiSite Module Support Forum
Quote:
Originally Posted by
royaldave
I figured out the >->- issue I think.
In YOUR_ADMIN/multsite.php, around line 224
change -
$multisite_cat_sites[]=substr($multisite_comment,4,strlen($multisite_comment)-4); //remove html comment
to this -
$multisite_cat_sites[]=substr($multisite_comment,4,strlen($multisite_comment)-5); //remove html comment
this wont clean up the mess, but should prevent it happening further.
This code is weird...
substr($variable,4); does exactly the same as substr($variable,4,strlen($variable)-4);
And same with this:
substr($variable,4,-1); does exactly the same as substr($variable,4,strlen($variable)-5);
Perhaps you can do what you want (which I am not sure what is it) with this: substr($multisite_comment,4,-4);