Commit ccc5235c authored by anarcat's avatar anarcat

fix disabled site support

parent 969d587a
......@@ -8,6 +8,7 @@
*/
class Provision_Config_Apache_Subdir extends Provision_Config_Http {
public $template = 'subdir.tpl.php';
public $disabled_template = 'subdir_disabled.tpl.php';
public $description = 'subdirectory support';
// hack: because the parent class doesn't support multiple config
......@@ -47,6 +48,9 @@ class Provision_Config_Apache_Subdir extends Provision_Config_Http {
parent::process();
$this->data['uri'] = $this->uri();
$this->data['subdir'] = $this->subdir();
if (!$this->site_enabled) {
$this->template = $this->disabled_template;
}
}
function filename() {
......
<Location /<?php print $location; ?>>
<Location /<?php print $subdir; ?>>
RewriteEngine on
# the ? at the end is to remove any query string in the original url
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment