Ajout du word of the day sur la galerie
This commit is contained in:
parent
b37a24693b
commit
f6b5aac244
1 changed files with 13 additions and 0 deletions
13
gallery.php
13
gallery.php
|
|
@ -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';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue