Эх сурвалжийг харах

Plugin: buycourses: add possibility to have a link to the plugin from the main admin screen

Yannick Warnier 6 жил өмнө
parent
commit
bc92454622

+ 3 - 0
plugin/buycourses/admin.php

@@ -0,0 +1,3 @@
+<?php
+// Redirect to buycourses/index.php
+header('location: index.php');

+ 2 - 0
plugin/buycourses/src/buy_course_plugin.class.php

@@ -52,6 +52,8 @@ class BuyCoursesPlugin extends Plugin
     const CULQI_INTEGRATION_TYPE = 'INTEG';
     const CULQI_PRODUCTION_TYPE = 'PRODUC';
 
+    public $isAdminPlugin = true;
+
     /**
      * BuyCoursesPlugin constructor.
      */