Fix Regressions in Vendor Templates updated path from ../user/post to ../agent/post
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
defined('FROM_POST_HANDLER') || die("Direct file access is not allowed");
|
defined('FROM_POST_HANDLER') || die("Direct file access is not allowed");
|
||||||
|
|
||||||
// Import shared code from user-side vendor management as we reuse functions
|
// Import shared code from user-side vendor management as we reuse functions
|
||||||
require_once '../user/post/vendor.php';
|
require_once '../agent/post/vendor.php';
|
||||||
|
|
||||||
if (isset($_POST['add_vendor_template'])) {
|
if (isset($_POST['add_vendor_template'])) {
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ $module = str_ireplace('_details', '', $module);
|
|||||||
// Dynamically load admin-related module POST logic
|
// Dynamically load admin-related module POST logic
|
||||||
|
|
||||||
// Load all module POST logic
|
// Load all module POST logic
|
||||||
// Loads everything in post/user/
|
// Loads everything in post
|
||||||
// Eventually, it would be nice to only specifically load what we need like we do for admins
|
// Eventually, it would be nice to only specifically load what we need like we do for admins
|
||||||
|
|
||||||
foreach (glob("post/*.php") as $user_module) {
|
foreach (glob("post/*.php") as $user_module) {
|
||||||
|
|||||||
Reference in New Issue
Block a user