Announcement

#1 2013-04-21 15:25:58

flop25
Piwigo Team
2006-07-06
7037

Smarty3

Hi team

I was updating Piwigo core files for Smarty3, then I get an error I can't solve
http://planete-flop.fr/trunk_smarty3_er … e_64.patch

Code:

Trying to get property of non-object in E:\Program Files\EasyPHP\www\SITE\sandbox\pwg_test\piwigo_trunk\include\smarty\libs\sysplugins\smarty_internal_templatebase.php on line 64

If anyone has time, it would great to take a look at this plz
Have a good day


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#2 2013-04-21 15:33:56

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: Smarty3

just one thing : I would like we try to not modify Template methods signature, one of the interest of this class is having our own interface with Smarty, and update it without breaking compatibility

in particular, leave Template::get_template_vars

Code:

function &get_template_vars($name=null)
{
   return $this->smarty->getTemplateVars( $name );
}

Offline

 

#3 2013-04-21 15:39:26

flop25
Piwigo Team
2006-07-06
7037

Re: Smarty3

yes you're perfectly right
That was a too aggressive search/replace


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#4 2013-04-21 18:05:24

flop25
Piwigo Team
2006-07-06
7037

Re: Smarty3

just updated the patch to correct what you said


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#5 2013-05-06 19:06:08

flop25
Piwigo Team
2006-07-06
7037

Re: Smarty3

Bump?


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#6 2013-05-07 07:01:42

rvelices
Former Piwigo Team
2005-12-29
1960

Re: Smarty3

flop25 wrote:

Bump?

because of your initial error ? (can't really help without a call stack or something ...)

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact