Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
z-push
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
Björn Fischer
z-push
Commits
e5f75f64
Commit
e5f75f64
authored
Sep 02, 2015
by
Sebastian Kummer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZP-686 Do not expose information in state migrate script. Released under
the Affero GNU General Public License (AGPL) version 3.
parent
5271568c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
migrate-2.0.x-2.1.0.php
tools/migrate-2.0.x-2.1.0.php
+1
-1
No files found.
tools/migrate-2.0.x-2.1.0.php
View file @
e5f75f64
...
@@ -53,7 +53,7 @@ define('ZPUSH_BASE_PATH', "../src");
...
@@ -53,7 +53,7 @@ define('ZPUSH_BASE_PATH', "../src");
*/
*/
try
{
try
{
if
(
php_sapi_name
()
!=
"cli"
)
if
(
php_sapi_name
()
!=
"cli"
)
die
(
sprintf
(
"This script should not be called in a browser. Called from: %s"
,
php_sapi_name
())
);
die
(
"This script can only be called from the CLI."
);
if
(
!
defined
(
'ZPUSH_BASE_PATH'
)
||
!
file_exists
(
ZPUSH_BASE_PATH
.
"/config.php"
))
if
(
!
defined
(
'ZPUSH_BASE_PATH'
)
||
!
file_exists
(
ZPUSH_BASE_PATH
.
"/config.php"
))
die
(
"ZPUSH_BASE_PATH not set correctly or no config.php file found
\n
"
);
die
(
"ZPUSH_BASE_PATH not set correctly or no config.php file found
\n
"
);
...
...
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