Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
d9f23c05
Commit
d9f23c05
authored
10 years ago
by
Thomas Müller
Browse files
Options
Downloads
Patches
Plain Diff
fixing undefined variable
parent
29583993
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
apps/encryption/controller/statuscontroller.php
+8
-8
8 additions, 8 deletions
apps/encryption/controller/statuscontroller.php
with
8 additions
and
8 deletions
apps/encryption/controller/statuscontroller.php
+
8
−
8
View file @
d9f23c05
...
...
@@ -59,30 +59,30 @@ class StatusController extends Controller {
*/
public
function
getStatus
()
{
$status
=
'error'
;
$message
=
''
;
switch
(
$this
->
session
->
getStatus
())
{
case
Session
::
INIT_EXECUTED
:
$status
=
'success'
;
$message
=
(
string
)
$this
->
l
->
t
(
'Invalid private key for Encryption App. Please update your private'
.
' key password in your personal settings to recover access to your'
.
' encrypted files.'
,
array
(
'app'
=>
'encryption'
)
);
.
' encrypted files.'
);
break
;
case
Session
::
NOT_INITIALIZED
:
$status
=
'success'
;
$message
=
(
string
)
$this
->
l
->
t
(
'Encryption App is enabled but your keys are not initialized,'
.
' please log-out and log-in again'
,
array
(
'app'
=>
'encryption'
)
);
.
' please log-out and log-in again'
);
break
;
default
:
$status
=
'error'
;
}
return
new
DataResponse
(
array
(
[
'status'
=>
$status
,
'data'
=>
array
(
'message'
=>
$message
)
)
'data'
=>
[
'message'
=>
$message
]
]
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment