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
a6a50002
Commit
a6a50002
authored
Jan 21, 2009
by
Seldaek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Fixed parameter parsing issue when a plugin name was all uppercased
git-svn-id:
svn://dwoo.org/dwoo/trunk@239
0598d79b-80c4-4d41-97ba-ac86fbbd088b
parent
ea8e8d54
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
CHANGELOG
CHANGELOG
+1
-0
Compiler.php
lib/Dwoo/Compiler.php
+1
-1
No files found.
CHANGELOG
View file @
a6a50002
...
...
@@ -7,6 +7,7 @@
* Fixed a bug with parsing AND/OR keywords in conditionals when they were
followed by round brackets
* Fixed assignments not handling multi-line values correctly
* Fixed parameter parsing issue when a plugin name was all uppercased
[2008-12-24] 1.0.1
* Direct assignments like {$foo = 5} now allow spaces around the operator
...
...
lib/Dwoo/Compiler.php
View file @
a6a50002
...
...
@@ -1494,7 +1494,7 @@ class Dwoo_Compiler implements Dwoo_ICompiler
if
(
is_array
(
$parsingParams
)
||
$curBlock
!=
'root'
)
{
$paramspos
=
strpos
(
$cmdstr
,
'('
);
$paramsep
=
')'
;
}
elseif
(
preg_match_all
(
'#[a-z0-9_]+(\s*\(|\s+[^(])#'
,
$cmdstr
,
$match
,
PREG_OFFSET_CAPTURE
))
{
}
elseif
(
preg_match_all
(
'#[a-z0-9_]+(\s*\(|\s+[^(])#
i
'
,
$cmdstr
,
$match
,
PREG_OFFSET_CAPTURE
))
{
$paramspos
=
$match
[
1
][
0
][
1
];
$paramsep
=
substr
(
$match
[
1
][
0
][
0
],
-
1
)
===
'('
?
')'
:
''
;
if
(
$paramsep
===
')'
)
{
...
...
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