We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b6530c commit 9f4876cCopy full SHA for 9f4876c
plugin/buy_courses/database.php
@@ -5,6 +5,7 @@
5
* Date: 21/05/14
6
* Time: 12:19 PM
7
*/
8
+$objPlugin = new Buy_CoursesPlugin();
9
10
$table = Database::get_main_table(TABLE_BUY_COURSE);
11
$sql = "CREATE TABLE IF NOT EXISTS $table (
@@ -332,4 +333,11 @@
332
333
payment_type VARCHAR(100) NOT NULL DEFAULT '',
334
status VARCHAR(20) NOT NULL DEFAULT '',
335
date TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP)";
-Database::query($sql);
336
+Database::query($sql);
337
+
338
+//Menu main tabs
339
+$rsTab = $objPlugin->addTab('Buy Courses', 'plugin/buy_courses/index.php');
340
341
+if ($rsTab) {
342
+ echo "<script>location.href = '" . $_SERVER['REQUEST_URI'] . "';</script>";
343
+}
0 commit comments