mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:04:53 +01:00
add fetch_string function so templates can live in a database table as well
This commit is contained in:
parent
f9ec4bcae0
commit
cd8871a53d
@ -197,5 +197,16 @@
|
||||
echo "<strong>Backtrace</strong>: ".function_backtrace(2)."<br/>\n";
|
||||
}
|
||||
|
||||
function fetch_string($string)
|
||||
{
|
||||
$tmpfname = tempnam ("/tmp", "sav");
|
||||
$fp = fopen($tmpfname, "w");
|
||||
fwrite($fp, $string);
|
||||
fclose($fp);
|
||||
$this->addPath('template','/tmp');
|
||||
$file_arr= explode('/',$tmpfname);
|
||||
return $this->fetch($file_arr[2]);
|
||||
unlink($tmpfname);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user