Ajout du word of the day sur la galerie

This commit is contained in:
Leblanc Simon 2008-10-16 00:24:03 +00:00
commit f6b5aac244

View file

@ -69,6 +69,19 @@ class gallery_manager
* @access public * @access public
*/ */
function generate() { function generate() {
// if one want to use punbb as forum
if( $this->general->use_punbb ) {
// get the word of the day
$fh = fopen( $this->general->forum.'/extern.php?action=new&show=1&fid='.$this->general->punbb_wotd_id, 'r');
if (!$fh) {
$this->general->wotd = $this->lang->forum_error;
} else {
$this->general->wotd = stream_get_contents($fh);
fclose($fh);
}
}
if ($this->general->use_cache) { if ($this->general->use_cache) {
// use the cache system // use the cache system
include_once 'cache.class.php'; include_once 'cache.class.php';