Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
9dbbc584
Commit
9dbbc584
authored
Mar 25, 2012
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix blade @includes.
parent
33cc89a7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
blade.php
laravel/blade.php
+1
-1
helpers.php
laravel/helpers.php
+14
-0
No files found.
laravel/blade.php
View file @
9dbbc584
...
@@ -256,7 +256,7 @@ class Blade {
...
@@ -256,7 +256,7 @@ class Blade {
{
{
$pattern
=
static
::
matcher
(
'include'
);
$pattern
=
static
::
matcher
(
'include'
);
return
preg_replace
(
$pattern
,
'$1<?php echo
render
$2->with(get_defined_vars()); ?>'
,
$value
);
return
preg_replace
(
$pattern
,
'$1<?php echo
view
$2->with(get_defined_vars()); ?>'
,
$value
);
}
}
/**
/**
...
...
laravel/helpers.php
View file @
9dbbc584
...
@@ -426,6 +426,20 @@ function has_php($version)
...
@@ -426,6 +426,20 @@ function has_php($version)
return
version_compare
(
PHP_VERSION
,
$version
)
>=
0
;
return
version_compare
(
PHP_VERSION
,
$version
)
>=
0
;
}
}
/**
* Get a view instance.
*
* @param string $view
* @param array $data
* @return View
*/
function
view
(
$view
,
$data
=
array
())
{
if
(
is_null
(
$view
))
return
''
;
return
Laravel\View
::
make
(
$view
,
$data
);
}
/**
/**
* Render the given view.
* Render the given view.
*
*
...
...
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