Skip to content

Commit 5639a92

Browse files
authored
Merge pull request #399 from topcoder-platform/issues-392
Issues-392: hide category description
2 parents e01ef3e + 0b09bb1 commit 5639a92

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

config/vanilla/config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
0 => 'staticcontent/container',
135135
1 => 'Internal',
136136
);
137-
$Configuration['Routes']['DefaultController'] = 'discussions';
137+
$Configuration['Routes']['DefaultController'] = 'categories';
138138
$Configuration['Routes']['XmZpbGVzdGFjaygvLiopPyQ='] = array (
139139
0 => 'vanilla/filestack$1',
140140
1 => 'Internal',

vanilla/applications/vanilla/views/categories/helper_functions.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,6 @@ function writeListItem($category, $depth) {
183183
Gdn::controller()->fireEvent('AfterCategoryTitle');
184184
?>
185185
</div>
186-
<div class="CategoryDescription">
187-
<?php echo val('Description', $category) ?>
188-
</div>
189186
<div class="Challenge">
190187
<?php
191188
Gdn::controller()->fireEvent('AfterChallenge', ['Category' =>$category]);

vanilla/applications/vanilla/views/discussions/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
watchButton($this->data('Category.CategoryID')).
1111
'</h1>';
1212

13-
$Description = $this->data('Category.Description', $this->description());
14-
echo wrapIf(Gdn_Format::htmlFilter($Description), 'div', ['class' => 'P PageDescription']);
13+
// $Description = $this->data('Category.Description', $this->description());
14+
// echo wrapIf(Gdn_Format::htmlFilter($Description), 'div', ['class' => 'P PageDescription']);
1515

1616
$this->fireEvent('AfterPageTitle');
1717

0 commit comments

Comments
 (0)