Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
webbasics
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
webbasics
Commits
ebf19c3d
Commit
ebf19c3d
authored
Jul 15, 2012
by
Taddeus Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some linguistic improvements.
parent
44d840f5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
README.txt
README.txt
+1
-1
template.php
template.php
+1
-2
No files found.
README.txt
View file @
ebf19c3d
...
@@ -12,7 +12,7 @@ Unit tests
...
@@ -12,7 +12,7 @@ Unit tests
----------
----------
Unit tests are in the 'tests/' directory. PHPUnit is used to run tests. The
Unit tests are in the 'tests/' directory. PHPUnit is used to run tests. The
PHP extension Xdebug needs to be installed in order to generate a code
PHP extension Xdebug needs to be installed in order to generate a code
coverage report. To run unit tests, simply run 'phpunit' in the root
coverage report. To run
all
unit tests, simply run 'phpunit' in the root
directory.
directory.
-------------
-------------
...
...
template.php
View file @
ebf19c3d
...
@@ -144,7 +144,7 @@ class Template extends Node {
...
@@ -144,7 +144,7 @@ class Template extends Node {
/**
/**
* Get the path to the template file (including one of the include paths).
* Get the path to the template file (including one of the include paths).
*
*
* @return string
t
he path to the template file.
* @return string
T
he path to the template file.
*/
*/
function
get_path
()
{
function
get_path
()
{
return
$this
->
path
;
return
$this
->
path
;
...
@@ -164,7 +164,6 @@ class Template extends Node {
...
@@ -164,7 +164,6 @@ class Template extends Node {
while
(
preg_match
(
'/(.*?)\{([^}]+)}(.*)/s'
,
$after
,
$matches
)
)
{
while
(
preg_match
(
'/(.*?)\{([^}]+)}(.*)/s'
,
$after
,
$matches
)
)
{
list
(
$before
,
$brackets_content
,
$after
)
=
array_slice
(
$matches
,
1
);
list
(
$before
,
$brackets_content
,
$after
)
=
array_slice
(
$matches
,
1
);
$line_count
+=
substr_count
(
$before
,
"
\n
"
);
$line_count
+=
substr_count
(
$before
,
"
\n
"
);
//var_dump(array_slice($matches, 1));
// Everything before the new block belongs to its parent
// Everything before the new block belongs to its parent
$current
->
add
(
'html'
)
->
set
(
'content'
,
$before
);
$current
->
add
(
'html'
)
->
set
(
'content'
,
$before
);
...
...
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