]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blobdiff - plugins/config_blocks/config_blocks.php
More towards notes (still not finished)
[irc/unrealircd/unrealircd-webpanel.git] / plugins / config_blocks / config_blocks.php
index cf9d91fc80baedec456bf0ff9a18c9a9f64ea9bc..b88d76bd4ef7252fcd48f013e2e8a5a52f6c9442 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-/* This plugin requires SQLAuth minimum version 1.0 */
+/* This plugin requires SQLDB minimum version 1.0 */
 
 /** Define our PERMISSION to manage configuration blocks */
 define('PERMISSION_CONFIG_BLOCKS', 'config_blocks');
@@ -15,7 +15,7 @@ class config_blocks
 
        function __construct()
        {
-               require_plugin("SQLAuth", "1.0");
+               require_plugin("SQLDB", "1.0");
                Hook::func(HOOKTYPE_NAVBAR, 'config_blocks::add_navbar');
                Hook::func(HOOKTYPE_USER_PERMISSION_LIST, 'config_blocks::permission_list');
 
@@ -46,7 +46,7 @@ class config_blocks
        public static function create_sql_table()
        {
                $conn = sqlnew();
-               $conn->query("CREATE TABLE IF NOT EXISTS " . SQL_PREFIX . "configblocks (
+               $conn->query("CREATE TABLE IF NOT EXISTS " . get_config("mysql::table_prefix") . "configblocks (
                        block_id int AUTO_INCREMENT NOT NULL,
                        block_name VARCHAR(255) NOT NULL,
                        block_value VARCHAR(255) NOT NULL,