Skip to content

Commit 68780fa

Browse files
committed
fix: update assetsUrl path
1 parent 90a2f66 commit 68780fa

File tree

1 file changed

+2
-5
lines changed
  • core/components/modai/elements/plugins

1 file changed

+2
-5
lines changed

core/components/modai/elements/plugins/modai.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,10 @@
2323
$action = $_REQUEST['a'];
2424
}
2525

26-
// Log the action value for debugging.
27-
$modx->log(modX::LOG_LEVEL_INFO, 'AutoSummaryPlugin: Current action value is: ' . print_r($action, true));
28-
2926
// Adjust the check as per your Manager’s action identifiers.
3027
if (in_array($action, ['resource/create', 'resource/update', '78', '85'])) {
3128
// Define the assets URL (ensure this path matches your installation).
32-
$assetsUrl = $modAI->getOption('assets_url');
29+
$assetsUrl = $modAI->getOption('assetsUrl');
3330

3431
$modx->controller->addHtml('
3532
<script type="text/javascript">
@@ -43,4 +40,4 @@
4340
$modx->regClientStartupScript($assetsUrl . 'js/mgr/modai.js');
4441
$modx->regClientStartupScript($assetsUrl . 'js/mgr/autosummary.js');
4542
$modx->regClientStartupScript($assetsUrl . 'js/mgr/widgets/image_prompt.window.js');
46-
}
43+
}

0 commit comments

Comments
 (0)