Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
UserAdminV2
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
庄欣
UserAdminV2
Commits
3583bc3b
Commit
3583bc3b
authored
Aug 02, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tweaked config and lang classes.
parent
f087df9b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
14 deletions
+14
-14
application/views/home/index.php
+0
-11
system/config.php
+7
-1
system/lang.php
+7
-2
No files found.
application/views/home/index.php
View file @
3583bc3b
...
...
@@ -61,12 +61,6 @@
.wrapper
h2
:first-of-type
{
margin-top
:
0
;
}
.footer
{
background-color
:
#eee
;
font-size
:
12px
;
text-align
:
right
;
}
</style>
</head>
<body>
...
...
@@ -81,9 +75,5 @@
<p>
Need to learn more? Peruse our
<a
href=
"http://laravel.com"
>
wonderful documentation
</a>
.
</p>
</div>
<div
class=
"wrapper footer"
>
<?php
echo
Benchmark
::
check
(
'laravel'
)
.
'ms | '
.
Benchmark
::
memory
()
.
'mb'
;
?>
</div>
</body>
</html>
\ No newline at end of file
system/config.php
View file @
3583bc3b
...
...
@@ -110,7 +110,12 @@ class Config {
$config
=
array_merge
(
$config
,
require
$path
);
}
return
(
count
(
static
::
$items
[
$file
]
=
$config
)
>
0
);
if
(
count
(
$config
)
>
0
)
{
static
::
$items
[
$file
]
=
$config
;
}
return
isset
(
static
::
$items
[
$file
]);
}
}
\ No newline at end of file
system/lang.php
View file @
3583bc3b
...
...
@@ -61,7 +61,7 @@ class Lang {
* @param mixed $default
* @return string
*/
public
function
get
(
$language
=
null
,
$default
=
''
)
public
function
get
(
$language
=
null
,
$default
=
null
)
{
if
(
is_null
(
$language
))
{
...
...
@@ -72,7 +72,12 @@ class Lang {
$this
->
load
(
$file
,
$language
);
$line
=
Arr
::
get
(
static
::
$lines
[
$language
.
$file
],
$line
,
$default
);
if
(
!
isset
(
static
::
$lines
[
$language
.
$file
][
$line
]))
{
return
is_callable
(
$default
)
?
call_user_func
(
$default
)
:
$default
;
}
$line
=
static
::
$lines
[
$language
.
$file
][
$line
];
foreach
(
$this
->
replacements
as
$key
=>
$value
)
{
...
...
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