low-level hook for loading templates

This commit is contained in:
Evan Prodromou 2011-05-04 11:28:49 -07:00
parent b432cc72c9
commit c46406b209

View File

@ -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 {