Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
Dwoo
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Common
Dwoo
Commits
cb3c2b55
Commit
cb3c2b55
authored
Jan 19, 2010
by
seldaek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow custom plugins to be called from within sub-templates, fixes #51
git-svn-id:
http://svn.dwoo.org/trunk@323
0598d79b-80c4-4d41-97ba-ac86fbbd088b
parent
c417fe27
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
CHANGELOG
CHANGELOG
+1
-1
Dwoo.php
lib/Dwoo.php
+2
-1
No files found.
CHANGELOG
View file @
cb3c2b55
...
...
@@ -33,7 +33,7 @@
* Fixed a couple bugs in the {dynamic} plugin with regard to using plugins
within a dynamic block
* Fixed a {load_templates} bug, plugins used in external templates were not
loaded correctly
loaded correctly
, same for custom user plugins
* Cached templates now check the source template for modification before
outputting the cached version
* Removed a couple of @-operator calls to file_get_contents
...
...
lib/Dwoo.php
View file @
cb3c2b55
...
...
@@ -1093,10 +1093,11 @@ class Dwoo
* this is so a single instance of every class plugin is created at each template run,
* allowing class plugins to have "per-template-run" static variables
*
* @private
* @param string $class the class name
* @return mixed an object of the given class
*/
p
rotected
function
getObjectPlugin
(
$class
)
p
ublic
function
getObjectPlugin
(
$class
)
{
if
(
isset
(
$this
->
runtimePlugins
[
$class
]))
{
return
$this
->
runtimePlugins
[
$class
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment