[svn r20489] logic changes - changed site of directory Serializer - (partial FS#4169)

skala
Isaac Flores 16 years ago
parent 5f1aef130b
commit e1582ec1b8
  1. 3
      main/garbage/Serializer/README
  2. 6
      main/garbage/Serializer/index.html
  3. 6
      main/inc/lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer.php

@ -0,0 +1,3 @@
This is a dummy file to prevent Git from ignoring this empty directory.
vim: et sw=4 sts=4

@ -0,0 +1,6 @@
<html>
<head>
</head>
<body>
</body>
</html>

@ -88,8 +88,9 @@ class HTMLPurifier_DefinitionCache_Serializer extends
* @todo Make protected
*/
public function generateBaseDirectoryPath($config) {
$base = $config->get('Cache', 'SerializerPath');
$base = is_null($base) ? HTMLPURIFIER_PREFIX . '/HTMLPurifier/DefinitionCache/Serializer' : $base;
$base = $config->get('Cache', 'SerializerPath');//main/garbage/Serializer
// $base = is_null($base) ? HTMLPURIFIER_PREFIX . '/HTMLPurifier/DefinitionCache/Serializer' : $base;
$base = is_null($base) ? '../../main/garbage/Serializer' : $base;
return $base;
}
@ -158,6 +159,7 @@ class HTMLPurifier_DefinitionCache_Serializer extends
trigger_error('Directory '.$dir.' not writable, '.
'please chmod to ' . $chmod,
E_USER_WARNING);
// chmod($dir,0777);
} else {
// generic error message
trigger_error('Directory '.$dir.' not writable, '.

Loading…
Cancel
Save