source: temp/test-xoops.ec-cube.net/html/modules/xoopsheadline/include/functions.php @ 405

Revision 405, 561 bytes checked in by root, 20 years ago (diff)
Line 
1<?php
2
3function &xoopsheadline_getrenderer(&$headline)
4{
5    include_once XOOPS_ROOT_PATH.'/modules/xoopsheadline/class/headlinerenderer.php';
6    if (file_exists(XOOPS_ROOT_PATH.'/modules/xoopsheadline/language/'.$GLOBALS['xoopsConfig']['language'].'/headlinerenderer.php')) {
7        include_once XOOPS_ROOT_PATH.'/modules/xoopsheadline/language/'.$GLOBALS['xoopsConfig']['language'].'/headlinerenderer.php';
8        if (class_exists('XoopsHeadlineRendererLocal')) {
9            return new XoopsHeadlineRendererLocal($headline);
10        }
11    }
12    return new XoopsHeadlineRenderer($headline);
13}
14?>
Note: See TracBrowser for help on using the repository browser.