Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
5720105a
Commit
5720105a
authored
Sep 05, 2007
by
Penny Leach
Committed by
Nigel McNie
Oct 17, 2007
Browse files
fixed up the blocktype lang handling
parent
e5442818
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/mahara.php
View file @
5720105a
...
...
@@ -296,7 +296,8 @@ function get_string_location($identifier, $section, $variables, $replacefunc='fo
if
(
$tocheck
==
'blocktype'
&&
strpos
(
$pluginname
,
'/'
)
!==
false
)
{
// it belongs to an artefact plugin
$bits
=
explode
(
'/'
,
$pluginname
);
$locations
[]
=
$docroot
.
'artefact/ '
.
$bits
[
0
]
.
'/blocktype/'
.
$bits
[
1
]
.
'/'
.
'lang/'
;
$locations
[]
=
$docroot
.
'artefact/'
.
$bits
[
0
]
.
'/blocktype/'
.
$bits
[
1
]
.
'/lang/'
;
$section
=
'blocktype.'
.
$bits
[
1
];
}
else
{
$locations
[]
=
$docroot
.
$tocheck
.
'/'
.
$pluginname
.
'/lang/'
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment