Skip to content

Commit 6689217

Browse files
committed
refactor: migrated add and edit category pages to controller (#3257)
1 parent 29868fa commit 6689217

File tree

10 files changed

+387
-390
lines changed

10 files changed

+387
-390
lines changed

phpmyfaq/admin/category.add.php

Lines changed: 0 additions & 102 deletions
This file was deleted.

phpmyfaq/admin/category.edit.php

Lines changed: 0 additions & 139 deletions
This file was deleted.

phpmyfaq/admin/index.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -272,12 +272,6 @@
272272
case 'updatecategory':
273273
require 'category.main.php';
274274
break;
275-
case 'addcategory':
276-
require 'category.add.php';
277-
break;
278-
case 'editcategory':
279-
require 'category.edit.php';
280-
break;
281275
case 'translatecategory':
282276
require 'category.translate.php';
283277
break;

phpmyfaq/assets/templates/admin/content/category.add.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</h1>
88
<div class="btn-toolbar mb-2 mb-md-0">
99
<div class="btn-group mr-2">
10-
<a class="btn btn-sm btn-info" href="?action=showcategory">
10+
<a class="btn btn-info" href="./category">
1111
<i aria-hidden="true" class="bi bi-list"></i> {{ msgCategoryMatrix }}
1212
</a>
1313
</div>

0 commit comments

Comments
 (0)