Thanks a lot! Sorry, I haven't noticed that first.

On Thu, Nov 25, 2010 at 12:03 AM, Platonides <platoni...@gmail.com> wrote:

> Juriy Katkov wrote:
> > Hello, everyone!
> > I'm writing an extension now where I have to know for the given link
> whether
> > it's red or not. How can I easily do that? I read some articles like that
> :
> > http://meta.wikimedia.org/wiki/Help:Page_existence and see how can I
> check
> > existence as user.
> > Is there any function to check page existence from my php-code?
> > Thanks in advance!
> > Yury
>
> $title = Title::newFromText( 'pagename' );
> $title->exists()
>
> If you want to also take into account blue links even when there is no
> page associated (eg. special pages)
> $title->isKnown()
>
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to