← Desenvolvimento

erro no eSyndicat

Lida 1056 vezes

Offline

gerardopedro 
Membro
Mensagens 596 Gostos 0
Troféus totais: 28
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

acabei agora de instalar o iSyndicat e da me este erro:



Fatal error: Call to a member function print_adsense() on a non-object in /home/forumsan/public_html/linktoapple/classes/DirSmarty.php on line 48

Nao faço a menor ideis do que será...

vou postar aqui o file a ver se alguem ajuda.


Código: [Seleccione]


<?php
/***************************************************************************
 *    MAFiASCRiPTS
 *    Implements class-connector between script code and smarty class
 ***************************************************************************/
require_once&#40;'smarty/Smarty.class.php'&#41;;

class gDirSmarty extends Smarty
&#123; 
function gDirSmarty&#40;&#41; 
&#123; 
global $gDirConfig;
$this->Smarty&#40;&#41;; 


$this->template_dir $gDirConfig['templates'&#93;.$gDirConfig['tmpl'&#93;.'/';
$this->compile_dir  'tmp/'
$this->config_dir   'configs/'
$this->cache_dir    'cache/'

$this->caching false
&#125; 
&#125; 

$gDirSmarty = new gDirSmarty&#40;&#41;;

/** global arrays used in the script **/
$gDirSmarty->assign_by_ref&#40;'config', $gDirConfig&#41;;
$gDirSmarty->assign_by_ref&#40;'lang', $gDirLang&#41;;
$gDirSmarty->assign_by_ref&#40;'editor', $gDirEditor&#41;;
$gDirSmarty->assign_by_ref&#40;'tab', $gTab&#41;;

/** register modifiers **/
$gDirSmarty->register_modifier&#40;"sslash", "stripslashes"&#41;;

/** register functions **/
$gDirSmarty->register_function&#40;"navigation", "navigation"&#41;;
$gDirSmarty->register_function&#40;"convert_str", "convert_str"&#41;;
$gDirSmarty->register_function&#40;"text_to_html", "text_to_html"&#41;;
$gDirSmarty->register_function&#40;"text_html", "text_html"&#41;;
$gDirSmarty->register_function&#40;"in_array_exist", "in_array_exist"&#41;;
$gDirSmarty->register_function&#40;"array_to_lang", "array_to_lang"&#41;;
$gDirSmarty->register_function&#40;"print_stars", "print_stars"&#41;;
$gDirSmarty->register_function&#40;"print_pagerank", "print_pagerank"&#41;;

$gDirSmarty->assign&#40;'templates', $gDirConfig['base'&#93;.$gDirConfig['dir'&#93;.$gDirConfig['templates'&#93;.$gDirConfig['tmpl'&#93;&#41;;
$gDirSmarty->assign&#40;'img', "&#123;$gDirConfig['base'&#93;&#125;&#123;$gDirConfig['dir'&#93;&#125;&#123;$gDirConfig['templates'&#93;&#125;&#123;$gDirConfig['tmpl'&#93;&#125;/img/"&#41;;
$gDirSmarty->assign&#40;'adsense', $gDirLayout->print_adsense&#40;&#41;&#41;;
?>




cumps