Workaround for deprecated function in newest dokuwiki trunk

Thanks to fa-ribeiro