Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Tenzing
/
Tz Tools
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
a72b2dd4
authored
2010-08-17 22:04:18 +0000
by
Chris Boden
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Fixed what I think was a bug if the user called url function from a theme
1 parent
3a17009c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
tz-tools.php
tz-tools.php
View file @
a72b2dd
...
...
@@ -56,7 +56,10 @@ function autoloader($class) {
function
url
(
$script
,
$base_file
=
false
)
{
if
(
defined
(
__NAMESPACE__
.
'\OVERRIDE'
))
{
$info
=
Array
(
pathinfo
(
DIR
),
pathinfo
(
__DIR__
));
$base_file
=
str_replace
(
__DIR__
,
DIR
,
$base_file
);
$base_file
=
str_replace
(
$info
[
1
][
'dirname'
],
$info
[
0
][
'dirname'
],
$base_file
);
}
$base_dir
=
(
false
===
$base_file
?
DIR
:
dirname
(
$base_file
));
...
...
Please
register
or
sign in
to post a comment