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
713444fd
Commit
713444fd
authored
Jul 15, 2010
by
Jordi Boggiano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #73: Fixed custom compilable plugins not being recognized as such
parent
282fd046
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
CHANGELOG
CHANGELOG
+2
-1
Core.php
lib/Dwoo/Core.php
+1
-1
No files found.
CHANGELOG
View file @
713444fd
...
...
@@ -29,10 +29,11 @@
to
use
them
even
as
string
.
*
Fixed
parsing
bug
with
method
calls
used
as
arguments
with
a
comma
following
.
*
Fixed
parsing
of
function
/
constants
that
start
with
an
underscore
,
*
Fixed
parsing
of
function
/
constants
that
start
with
an
underscore
,
thanks
to
Dominik
del
Bondio
for
the
patch
*
Adapters
:
Agavi
:
Added
support
for
multiple
plugin
directories
in
the
config
,
thanks
to
Mike
Seth
for
the
patch
*
Fixed
custom
compilable
plugins
not
being
recognized
as
such
[
2010
-
02
-
07
]
1.1.1
+
Added
{
optional
}
plugin
that
just
prints
an
optional
var
without
any
...
...
lib/Dwoo/Core.php
View file @
713444fd
...
...
@@ -484,7 +484,7 @@ class Dwoo_Core
if
(
is_subclass_of
(
$callback
,
'Dwoo_Block_Plugin'
))
{
$this
->
plugins
[
$name
]
=
array
(
'type'
=>
self
::
BLOCK_PLUGIN
|
$compilable
,
'callback'
=>
$callback
,
'class'
=>
$callback
);
}
else
{
$this
->
plugins
[
$name
]
=
array
(
'type'
=>
self
::
CLASS_PLUGIN
|
$compilable
,
'callback'
=>
$callback
,
'class'
=>
$callback
,
'function'
=>
'process'
);
$this
->
plugins
[
$name
]
=
array
(
'type'
=>
self
::
CLASS_PLUGIN
|
$compilable
,
'callback'
=>
$callback
,
'class'
=>
$callback
,
'function'
=>
(
$compilable
?
'compile'
:
'process'
)
);
}
}
elseif
(
function_exists
(
$callback
))
{
$this
->
plugins
[
$name
]
=
array
(
'type'
=>
self
::
FUNC_PLUGIN
|
$compilable
,
'callback'
=>
$callback
);
...
...
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