Milky Way countModules() error

5 views
Skip to first unread message

elin

unread,
Apr 7, 2010, 11:14:26 AM4/7/10
to Joomla! CMS Development
I'm not able to get user1 and user2 positions to display in Milky Way
as coded.
The problem is if ($this->countModules('user1 or user2')) is always
returning false.
If you separate out the two counts it works fine.

Is this on purpose or a bug?

Elin

Matt Thomas

unread,
Apr 9, 2010, 12:31:13 AM4/9/10
to joomla-...@googlegroups.com
Hi Elin,

I saw that you made reference to this in another post. Did you solve this issue or is this a bug?

Thanks!

Matt


--
You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
To post to this group, send an email to joomla-...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-cm...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-cms?hl=en-GB.


elin

unread,
Apr 9, 2010, 9:39:31 AM4/9/10
to Joomla! CMS Development
Well that was the question I asked. Having dug into the code a bit,
getting rid of the slashes in \= below seems to solve it.

$operators = '(\+|\-|\*|\/|==|\!=|\<\>|\<|\>|\<\=|\>\=|and|or|xor)
';
$words = preg_split('# '.$operators.' #', $condition, null,
PREG_SPLIT_DELIM_CAPTURE);


Elin

On Apr 9, 12:31 am, Matt Thomas <m...@betweenbrain.com> wrote:
> Hi Elin,
>
> I saw that you made reference to this in another post. Did you solve this
> issue or is this a bug?
>
> Thanks!
>
> Matt
>
>
>
> On Wed, Apr 7, 2010 at 11:14 AM, elin <elin.war...@gmail.com> wrote:
> > I'm not able to get user1 and user2 positions to display in Milky Way
> > as coded.
> > The problem is if ($this->countModules('user1 or user2')) is always
> > returning false.
> > If you separate out the two counts it works fine.
>
> > Is this on purpose or a bug?
>
> > Elin
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Joomla! CMS Development" group.
> > To post to this group, send an email to joomla-...@googlegroups.com.
> > To unsubscribe from this group, send email to

> > joomla-dev-cm...@googlegroups.com<joomla-dev-cms%2Bunsubscribe@go oglegroups.com>

Reply all
Reply to author
Forward
0 new messages