We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 278cde4 commit 8bbb05bCopy full SHA for 8bbb05b
1 file changed
Courseware.php
@@ -542,8 +542,13 @@ public static function deleteUserdata($user_id)
542
return $exec;
543
}
544
545
- public static function addBlockPath($path_to_block)
+ public static function addBlock($plugin_name, $rel_path)
546
{
547
- self::$registered_blocks[] = $path_to_block;
+ $path = PluginEngine::getPlugin($plugin_name)->getPluginPath();
548
+
549
+ self::$registered_blocks[] = [
550
+ 'plugin' => $plugin_name,
551
+ 'path' => $path .'/'. $rel_path,
552
+ ];
553
554
0 commit comments