Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

plugins_dir

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: German
View previous topic :: View next topic  
Author Message
Hinrich
Smarty Rookie


Joined: 18 Apr 2003
Posts: 33

PostPosted: Wed Apr 28, 2004 6:27 pm    Post subject: plugins_dir Reply with quote

Wie schön, dass es nun ein zumindest für mich native spoken Board gibt; das Schulenglisch hat doch arge Roststellen angesetzt.

plugins_dir ist ja ein Array, welches bisher vom Anfang bis zum Ende durchsucht wird. Durch eine geeignete Reihenfolge der Verzeichnisangaben bin ich so in der Lage, vorhandene Plugins zu überschreiben, da die Suche im Erfolgsfall sofort abbricht.

Ist dieses Verhalten ein Seiteneffekt, oder kann ich mich darauf verlassen, dass es auch in Zukunft so gehandhabt wird, und damit Plugins je nach Bedarf überschreiben kann?[/b]
Back to top
View user's profile Send private message
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Wed Apr 28, 2004 7:11 pm    Post subject: Reply with quote

Ja, auf dieses Verhalten kann man sich verlassen. Die Suche kann beschleuningt werden, wenn Plugins am Anfang des Pfades stehen. Ebenso kann man so auch "interne" Plugins durch eigene überladen, wenn der eigene Plugin-Pfad in der Liste vor dem von smarty/libs steht.

Es gab mal einen Bug, der die Reihenfolge umgekehrt hat. Das war aber ein Versehen und ist behoben worden (laut NEWS-file in Smarty-2.6.0-RC2).

Gruß
messju
Back to top
View user's profile Send private message Send e-mail Visit poster's website
andre
Smarty Pro


Joined: 23 Apr 2003
Posts: 164
Location: Karlsruhe, Germany

PostPosted: Fri Apr 30, 2004 6:02 am    Post subject: Reply with quote

Quote:
Ebenso kann man so auch "interne" Plugins durch eigene überladen, wenn der eigene Plugin-Pfad in der Liste vor dem von smarty/libs steht


Das ist vor allem hilfreich, da dann die original Distribution nicht dauernd "gepatcht" werden muss.
Back to top
View user's profile Send private message
Duncan
Smarty Pro


Joined: 16 Dec 2003
Posts: 166

PostPosted: Fri Apr 30, 2004 4:22 pm    Post subject: Reply with quote

andre wrote:
Das ist vor allem hilfreich, da dann die original Distribution nicht dauernd "gepatcht" werden muss.

Oh,
das ist in der Tat ziemlich praktisch.
Ich wusste nicht einmal, dass es so -wie oben erwaehnt- moeglich ist!
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: German All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP