Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
Dwoo
Project
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Common
Dwoo
Commits
ecad8099
Commit
ecad8099
authored
May 06, 2008
by
Seldaek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git-svn-id:
svn://dwoo.org/dwoo/trunk@45
0598d79b-80c4-4d41-97ba-ac86fbbd088b
parent
860ce2d9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
Dwoo.php
lib/Dwoo.php
+7
-4
No files found.
lib/Dwoo.php
View file @
ecad8099
...
...
@@ -1490,7 +1490,7 @@ class Dwoo_Loader
{
if
(
is_dir
(
$f
))
self
::
rebuildClassPathCache
(
$f
,
false
);
else
if
(
basename
(
$f
)
!==
'classpath.cache'
)
else
self
::
$classpath
[
str_replace
(
array
(
'function.'
,
'block.'
,
'modifier.'
,
'outputfilter.'
,
'filter.'
,
'prefilter.'
,
'postfilter.'
,
'pre.'
,
'post.'
,
'output.'
,
'shared.'
,
'helper.'
),
''
,
basename
(
$f
,
'.php'
))]
=
$f
;
}
...
...
@@ -1514,8 +1514,8 @@ class Dwoo_Loader
if
(
!
isset
(
self
::
$classpath
[
$class
])
||
!
include
self
::
$classpath
[
$class
])
{
self
::
rebuildClassPathCache
(
DWOO_DIRECTORY
.
'plugins'
,
DWOO_COMPILE_DIRECTORY
.
DIRECTORY_SEPARATOR
.
'classpath.cache.php'
);
foreach
(
self
::
$paths
as
$path
)
self
::
rebuildClassPathCache
(
$path
[
0
],
$path
[
1
]
);
foreach
(
self
::
$paths
as
$path
=>
$file
)
self
::
rebuildClassPathCache
(
$path
,
$file
);
if
(
isset
(
self
::
$classpath
[
$class
]))
include
self
::
$classpath
[
$class
];
else
...
...
@@ -1530,13 +1530,16 @@ class Dwoo_Loader
*/
public
static
function
addDirectory
(
$pluginDir
)
{
if
(
!
isset
(
self
::
$paths
[
$pluginDir
]))
{
$cacheFile
=
DWOO_COMPILE_DIRECTORY
.
DIRECTORY_SEPARATOR
.
'classpath-'
.
substr
(
strtr
(
$pluginDir
,
':/\\.'
,
'----'
),
strlen
(
$pluginDir
)
>
80
?
-
80
:
0
)
.
'.cache.php'
;
self
::
$paths
[]
=
array
(
$pluginDir
,
$cacheFile
)
;
self
::
$paths
[
$pluginDir
]
=
$cacheFile
;
if
(
file_exists
(
$cacheFile
))
include
$cacheFile
;
else
Dwoo_Loader
::
rebuildClassPathCache
(
$pluginDir
,
$cacheFile
);
}
}
}
/**
...
...
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