Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
question2answer
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
outils
question2answer
Commits
87f9efc8
Commit
87f9efc8
authored
Apr 12, 2016
by
Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix JPATH_BASE
parent
b4aa1e4c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
qa-joomla-helper.php
qa-include/util/qa-joomla-helper.php
+3
-8
No files found.
qa-include/util/qa-joomla-helper.php
View file @
87f9efc8
...
@@ -33,16 +33,11 @@ class qa_joomla_helper {
...
@@ -33,16 +33,11 @@ class qa_joomla_helper {
$this
->
load_joomla_app
();
$this
->
load_joomla_app
();
}
}
/*
* If your Q2A installation is in a subfolder of your Joomla, then this file should be in joomla-root/qa-root/qa-include/util/
* We can use this info to track back up the tree to find the Joomla root.
* If your Q2A installation is in a different folder structure, then you should define JOOMLA_PATH_BASE manually in your qa-config file.
*/
private
function
find_joomla_path
()
private
function
find_joomla_path
()
{
{
if
(
!
defined
(
'JPATH_BASE'
))
{
//JPATH_BASE must be defined for Joomla to work.
// JPATH_BASE must be defined for Joomla to work
$joomlaPath
=
dirname
(
dirname
(
dirname
(
__DIR__
)));
if
(
!
defined
(
'JPATH_BASE'
))
{
define
(
'JPATH_BASE'
,
$joomlaPath
);
define
(
'JPATH_BASE'
,
QA_FINAL_JOOMLA_INTEGRATE_PATH
);
}
}
}
}
...
...
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