Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
quassel-rest-search
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Janne Mareike Koschinski
quassel-rest-search
Commits
86fddbd2
Commit
86fddbd2
authored
8 years ago
by
Janne Mareike Koschinski
Browse files
Options
Downloads
Patches
Plain Diff
Fixed a minor bug
parent
92e380b0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
backend/Config.php
+4
-4
4 additions, 4 deletions
backend/Config.php
backend/helper/RendererHelper.php
+1
-1
1 addition, 1 deletion
backend/helper/RendererHelper.php
with
5 additions
and
5 deletions
backend/Config.php
+
4
−
4
View file @
86fddbd2
...
...
@@ -8,16 +8,16 @@ class Config {
public
$username
;
public
$password
;
public
$pa
ge
_prefix
;
public
$pa
th
_prefix
;
public
function
__construct
(
string
$pa
ge
_prefix
,
string
$database_connector
,
string
$username
,
string
$password
)
{
public
function
__construct
(
string
$pa
th
_prefix
,
string
$database_connector
,
string
$username
,
string
$password
)
{
$this
->
database_connector
=
$database_connector
;
$this
->
username
=
$username
;
$this
->
password
=
$password
;
$this
->
pa
ge
_prefix
=
$pa
ge
_prefix
;
$this
->
pa
th
_prefix
=
$pa
th
_prefix
;
}
public
static
function
createFromGlobals
()
{
return
new
Config
(
pa
ge
_prefix
,
'pgsql:host='
.
db_host
.
';port='
.
db_port
.
';dbname='
.
db_name
.
''
,
db_user
,
db_pass
);
return
new
Config
(
pa
th
_prefix
,
'pgsql:host='
.
db_host
.
';port='
.
db_port
.
';dbname='
.
db_name
.
''
,
db_user
,
db_pass
);
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
backend/helper/RendererHelper.php
+
1
−
1
View file @
86fddbd2
...
...
@@ -37,6 +37,6 @@ class RendererHelper {
}
public
function
redirect
(
string
$page
,
string
$flash
=
null
)
{
header
(
'Location: '
.
$this
->
config
->
pa
ge
_prefix
.
$page
);
header
(
'Location: '
.
$this
->
config
->
pa
th
_prefix
.
$page
);
}
}
\ No newline at end of file
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