low-level hook for loading templates
This commit is contained in:
parent
b432cc72c9
commit
c46406b209
@ -63,6 +63,8 @@ class DocFile
|
||||
|
||||
$filename = null;
|
||||
|
||||
if (Event::handle('StartDocFileForTitle', array($title, &$paths, &$filename))) {
|
||||
|
||||
foreach ($paths as $path) {
|
||||
|
||||
$def = $path.'/'.$title;
|
||||
@ -83,6 +85,9 @@ class DocFile
|
||||
}
|
||||
}
|
||||
|
||||
Event::handle('EndDocFileForTitle', array($title, $paths, &$filename));
|
||||
}
|
||||
|
||||
if (empty($filename)) {
|
||||
return null;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user