Index: trunk/extensions/SemanticForms/includes/SF_FormPrinter.php |
— | — | @@ -1077,23 +1077,23 @@ |
1078 | 1078 | if ( $tag == 'create title' || $tag == 'add title' ) { |
1079 | 1079 | // handle this only if we're adding a page |
1080 | 1080 | if ( ! $this->mPageTitle->exists() ) { |
1081 | | - $val = $sub_components[1]; |
1082 | | - $form_page_title = $val; |
| 1081 | + $form_page_title = $sub_components[1]; |
1083 | 1082 | } |
1084 | | - } |
1085 | | - elseif ( $tag == 'edit title' ) { |
| 1083 | + } elseif ( $tag == 'edit title' ) { |
1086 | 1084 | // handle this only if we're editing a page |
1087 | 1085 | if ( $this->mPageTitle->exists() ) { |
1088 | | - $val = $sub_components[1]; |
1089 | | - $form_page_title = $val; |
| 1086 | + $form_page_title = $sub_components[1]; |
1090 | 1087 | } |
1091 | | - } |
1092 | | - elseif ( $tag == 'partial form' ) { |
| 1088 | + } elseif ( $tag == 'query title' ) { |
| 1089 | + // handle this only if we're in 'RunQuery' |
| 1090 | + if ( $is_query ) { |
| 1091 | + $form_page_title = $sub_components[1]; |
| 1092 | + } |
| 1093 | + } elseif ( $tag == 'partial form' ) { |
1093 | 1094 | $form_is_partial = true; |
1094 | 1095 | // replacement pages may have minimal matches... |
1095 | 1096 | $source_page_matches_this_form = true; |
1096 | | - } |
1097 | | - elseif ( $tag == 'includeonly free text' || $tag == 'onlyinclude free text' ) { |
| 1097 | + } elseif ( $tag == 'includeonly free text' || $tag == 'onlyinclude free text' ) { |
1098 | 1098 | $onlyinclude_free_text = true; |
1099 | 1099 | } |
1100 | 1100 | } |