Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Remove the html content template on mkfile action - could be eventual…
Browse files Browse the repository at this point in the history
…ly replaced by a generic templating mechanism
  • Loading branch information
cdujeu committed Oct 25, 2014
1 parent 5215984 commit 2ca9d8b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions core/src/plugins/access.fs/class.fsAccessDriver.php
Expand Up @@ -1717,10 +1717,6 @@ public function mkDir($crtDir, $newDirName, $ignoreExists = false)

public function createEmptyFile($crtDir, $newFileName, $content = "")
{
if (($content == "") && preg_match("/\.html$/",$newFileName)||preg_match("/\.htm$/",$newFileName)) {
$content = "<html>\n<head>\n<title>New Document - Created By Pydio</title>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\n</head>\n<body bgcolor=\"#FFFFFF\" text=\"#000000\">\n\n</body>\n</html>\n";
AJXP_Controller::applyHook("node.before_create", array(new AJXP_Node($this->urlBase.$crtDir."/".$newFileName), strlen($content)));
}
AJXP_Controller::applyHook("node.before_change", array(new AJXP_Node($this->urlBase.$crtDir)));
$mess = ConfService::getMessages();
if ($newFileName=="") {
Expand Down

0 comments on commit 2ca9d8b

Please sign in to comment.