@@ 102-115 (lines=14) @@ | ||
99 | ||
100 | break; |
|
101 | ||
102 | case SUBSCRIPTION_TYPE_ALL_TEMPLATES: |
|
103 | ||
104 | $project = project_find($subscription['subscribe_param']); |
|
105 | ||
106 | if (!$project) |
|
107 | { |
|
108 | debug_write_log(DEBUG_WARNING, 'Project cannot be found.'); |
|
109 | exit; |
|
110 | } |
|
111 | ||
112 | $xml .= '<text label="' . get_html_resource(RES_PROJECT_ID) . '">' . ustr2html($project['project_name']) . '</text>'; |
|
113 | $xml .= '<text label="' . get_html_resource(RES_TEMPLATE_ID) . '">' . get_html_resource(RES_ALL_TEMPLATES_ID) . '</text>'; |
|
114 | ||
115 | break; |
|
116 | ||
117 | case SUBSCRIPTION_TYPE_ONE_TEMPLATE: |
|
118 | ||
@@ 117-130 (lines=14) @@ | ||
114 | ||
115 | break; |
|
116 | ||
117 | case SUBSCRIPTION_TYPE_ONE_TEMPLATE: |
|
118 | ||
119 | $template = template_find($subscription['subscribe_param']); |
|
120 | ||
121 | if (!$template) |
|
122 | { |
|
123 | debug_write_log(DEBUG_WARNING, 'Template cannot be found.'); |
|
124 | exit; |
|
125 | } |
|
126 | ||
127 | $xml .= '<text label="' . get_html_resource(RES_PROJECT_ID) . '">' . ustr2html($template['project_name']) . '</text>'; |
|
128 | $xml .= '<text label="' . get_html_resource(RES_TEMPLATE_ID) . '">' . ustr2html($template['template_name']) . '</text>'; |
|
129 | ||
130 | break; |
|
131 | ||
132 | default: |
|
133 |