mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-28 23:03:25 +09:00
Set up replacement table for path conversions
This commit is contained in:
parent
48a5e73bdc
commit
b0bfb9a364
3 changed files with 10 additions and 2 deletions
|
|
@ -11,7 +11,6 @@
|
|||
*/
|
||||
class TemplateHandler
|
||||
{
|
||||
|
||||
private $compiled_path = 'files/cache/template_compiled/'; ///< path of compiled caches files
|
||||
private $path = NULL; ///< target directory
|
||||
private $filename = NULL; ///< target filename
|
||||
|
|
@ -689,6 +688,8 @@ class TemplateHandler
|
|||
case 'load':
|
||||
case 'unload':
|
||||
$metafile = '';
|
||||
$replacements = HTMLDisplayHandler::$replacements;
|
||||
$attr['target'] = preg_replace(array_keys($replacements), array_values($replacements), $attr['target']);
|
||||
$pathinfo = pathinfo($attr['target']);
|
||||
$doUnload = ($m[3] === 'unload');
|
||||
$isRemote = !!preg_match('@^(https?:)?//@i', $attr['target']);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue