14
settings.php
14
settings.php
@ -22,12 +22,16 @@
|
||||
* @package local_webhooks
|
||||
*/
|
||||
|
||||
defined( "MOODLE_INTERNAL" ) || die();
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
if ( $hassiteconfig ) {
|
||||
$ADMIN->add( "server", new admin_externalpage( "local_webhooks",
|
||||
new lang_string( "pluginname", "local_webhooks" ),
|
||||
new moodle_url( "/local/webhooks/index.php" )
|
||||
/* @var \admin_root $ADMIN */
|
||||
|
||||
if ($hassiteconfig) {
|
||||
$ADMIN->add(
|
||||
'server', new admin_externalpage(
|
||||
'local_webhooks',
|
||||
new lang_string('pluginname', 'local_webhooks'),
|
||||
new moodle_url('/local/webhooks/index.php')
|
||||
)
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user