Пример #1
0
 function test99DumpHtml()
 {
     global $request, $cur_dir;
     $request->setArg('directory', $cur_dir . '/.dumphtml');
     purge_dir($cur_dir . "/.dumphtml");
     purge_dir($cur_dir . "/.dumphtml/images");
     $request->setArg('pagename', _("PhpWikiAdministration"));
     $request->setArg('pages', '');
     //FIXME: LinkDatabase doesn't work for DumpHtmlToDir
     //$request->setArg('exclude','LinkDatabase');  // this does not work with format=text => exit
     DumpHtmlToDir($request);
     $this->assertTrue(file_exists($cur_dir . "/.dumphtml/" . HOME_PAGE . ".html"));
 }
Пример #2
0
 function action_dumphtml()
 {
     include_once "lib/loadsave.php";
     DumpHtmlToDir($this);
 }