[dokuwiki] Re: DOKU_URL without http?

  • From: Eivind Morland <eivind.morland@xxxxxxxxx>
  • To: Dokuwiki Mailinglist <dokuwiki@xxxxxxxxxxxxx>
  • Date: Wed, 1 Oct 2014 23:10:51 +0530

> <?php
> if(preg_match('#^http://(.*?)\/(.*)$#',DOKU_URL,$matches)) {
>    $domain = $matches[1];
>    }
>    else $domain = DOKU_URL;
>    // output $domain as needed; for instance:
>    echo "<h3>$domain</h3>\n";
> ?>

Myron to the rescue, thanks a bazillion!

I appreciate the feedback regarding this belonging on the forum instead. I 
guess “development” mailing list actually means Dokuwiki core development, 
because I thought my post would fall under template development…? :) But at 
least now I know!

On a different note, congrats everyone for the quickest Dokuwiki release in 
history! Is there a way for the uninitiated to be a part of the update team on 
dokuwiki.org? Like, for instance check plugins and mark as working, or is this 
preserved for the developer to do?

Best regards,
Eivind--
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts: