Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
osticket
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
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
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
docker
osticket
Commits
721e4123
Commit
721e4123
authored
11 years ago
by
Jared Hancock
Browse files
Options
Downloads
Patches
Plain Diff
lint: Fix E_STRICT warnings
Fixes #262
parent
8ee35dc9
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
bootstrap.php
+1
-1
1 addition, 1 deletion
bootstrap.php
include/class.osticket.php
+3
-3
3 additions, 3 deletions
include/class.osticket.php
with
4 additions
and
4 deletions
bootstrap.php
+
1
−
1
View file @
721e4123
...
...
@@ -2,7 +2,7 @@
class
Bootstrap
{
function
init
()
{
static
function
init
()
{
#Disable Globals if enabled....before loading config info
if
(
ini_get
(
'register_globals'
))
{
ini_set
(
'register_globals'
,
0
);
...
...
This diff is collapsed.
Click to expand it.
include/class.osticket.php
+
3
−
3
View file @
721e4123
...
...
@@ -362,8 +362,7 @@ class osTicket {
return
null
;
}
/* static */
function
get_root_path
(
$dir
)
{
static
function
get_root_path
(
$dir
)
{
/* If run from the commandline, DOCUMENT_ROOT will not be set. It is
* also likely that the ROOT_PATH will not be necessary, so don't
...
...
@@ -394,7 +393,8 @@ class osTicket {
* the osTicket installation. That is removed from SCRIPT_NAME.
* What's left is the ROOT_PATH.
*/
$frame
=
array_pop
(
debug_backtrace
(
false
));
$bt
=
debug_backtrace
(
false
);
$frame
=
array_pop
(
$bt
);
$file
=
str_replace
(
'\\'
,
'/'
,
$frame
[
'file'
]);
$path
=
substr
(
$file
,
strlen
(
ROOT_DIR
));
if
(
$path
&&
(
$pos
=
strpos
(
$_SERVER
[
'SCRIPT_NAME'
],
$path
))
!==
false
)
...
...
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