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
2b88c788
Commit
2b88c788
authored
Apr 13, 2012
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplified the paths.php file.
parent
1847a369
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
20 deletions
+4
-20
changes.md
laravel/documentation/changes.md
+1
-0
paths.php
paths.php
+3
-20
No files found.
laravel/documentation/changes.md
View file @
2b88c788
...
...
@@ -41,6 +41,7 @@
-
Allows pivot table timestamps to be disabled.
-
Made the
`get_timestamp`
Eloquent method static.
-
`Request::secure`
now takes
`application.ssl`
configuration option into consideration.
-
Simplified the
`paths.php`
file.
<a
name=
"upgrade-3.2"
></a>
## Upgrading From 3.1
...
...
paths.php
View file @
2b88c788
...
...
@@ -9,17 +9,9 @@
*/
// --------------------------------------------------------------
//
Initialize the web variable if it doesn't exist
.
//
Change to the current working directory
.
// --------------------------------------------------------------
if
(
!
isset
(
$web
))
$web
=
false
;
// --------------------------------------------------------------
// Change to the current directory if not from the web.
// --------------------------------------------------------------
if
(
!
$web
)
{
chdir
(
__DIR__
);
}
chdir
(
__DIR__
);
// --------------------------------------------------------------
// Define the directory separator for the environment.
...
...
@@ -57,22 +49,13 @@ $paths['storage'] = 'storage';
// --------------------------------------------------------------
// The path to the public directory.
// --------------------------------------------------------------
if
(
$web
)
{
$GLOBALS
[
'laravel_paths'
][
'public'
]
=
realpath
(
''
)
.
DS
;
}
else
{
$paths
[
'public'
]
=
'public'
;
}
$paths
[
'public'
]
=
'public'
;
// --------------------------------------------------------------
// Define each constant if it hasn't been defined.
// --------------------------------------------------------------
foreach
(
$paths
as
$name
=>
$path
)
{
if
(
$web
)
$path
=
"../
{
$path
}
"
;
if
(
!
isset
(
$GLOBALS
[
'laravel_paths'
][
$name
]))
{
$GLOBALS
[
'laravel_paths'
][
$name
]
=
realpath
(
$path
)
.
DS
;
...
...
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