@@ 18-23 (lines=6) @@ | ||
15 | if (preg_match("/^[a-z0-9\._-]+$/i",$function)) { |
|
16 | if (isset($this->data->config->pinp[$type][$function][$language])) { |
|
17 | unset($this->data->config->pinp[$type][$function][$language]); |
|
18 | if (count($this->data->config->pinp[$type][$function])==0) { |
|
19 | unset($this->data->config->pinp[$type][$function]); |
|
20 | if (count($this->data->config->pinp[$type])==0) { |
|
21 | unset($this->data->config->pinp[$type]); |
|
22 | } |
|
23 | } |
|
24 | if (isset($this->data->config->templates[$type][$function][$language])) { |
|
25 | // Store the old template information in deleted_templates for SVN to use. |
|
26 | if ($AR->SVN->enabled) { |
|
@@ 34-39 (lines=6) @@ | ||
31 | } |
|
32 | ||
33 | unset($this->data->config->templates[$type][$function][$language]); |
|
34 | if (count($this->data->config->templates[$type][$function])==0) { |
|
35 | unset($this->data->config->templates[$type][$function]); |
|
36 | if (count($this->data->config->templates[$type])==0) { |
|
37 | unset($this->data->config->templates[$type]); |
|
38 | } |
|
39 | } |
|
40 | } |
|
41 | if (isset($this->data->config->privatetemplates[$type][$function])) { |
|
42 | // Store the old template information in deleted_privatetemplates for SVN to use. |
|
@@ 50-55 (lines=6) @@ | ||
47 | } |
|
48 | ||
49 | unset($this->data->config->privatetemplates[$type][$function][$language]); |
|
50 | if (count($this->data->config->privatetemplates[$type][$function])==0) { |
|
51 | unset($this->data->config->privatetemplates[$type][$function]); |
|
52 | if (count($this->data->config->privatetemplates[$type])==0) { |
|
53 | unset($this->data->config->privatetemplates[$type]); |
|
54 | } |
|
55 | } |
|
56 | } |
|
57 | $template=$type.".".$function.".".$language; |
|
58 | $templates=$this->store->get_filestore("templates"); |
@@ 87-92 (lines=6) @@ | ||
84 | $fileinfo[$pinp_filename] = array(); |
|
85 | if (isset($this->data->config->deleted_templates[$type][$function][$language])) { |
|
86 | unset($this->data->config->deleted_templates[$type][$function][$language]); |
|
87 | if (count($this->data->config->deleted_templates[$type][$function])==0) { |
|
88 | unset($this->data->config->deleted_templates[$type][$function]); |
|
89 | if (count($this->data->config->deleted_templates[$type])==0) { |
|
90 | unset($this->data->config->deleted_templates[$type]); |
|
91 | } |
|
92 | } |
|
93 | } |
|
94 | if (isset($this->data->config->deleted_privatetemplates[$type][$function])) { |
|
95 | unset($this->data->config->deleted_privatetemplates[$type][$function]); |
|
@@ 94-99 (lines=6) @@ | ||
91 | } |
|
92 | } |
|
93 | } |
|
94 | if (isset($this->data->config->deleted_privatetemplates[$type][$function])) { |
|
95 | unset($this->data->config->deleted_privatetemplates[$type][$function]); |
|
96 | if (count($this->data->config->deleted_privatetemplates[$type])==0) { |
|
97 | unset($this->data->config->deleted_privatetemplates[$type]); |
|
98 | } |
|
99 | } |
|
100 | } |
|
101 | } |
|
102 | } |