Revision: 9882
http://xoops.svn.sourceforge.net/xoops/?rev=9882&view=rev
Author: dhcst
Date: 2012-07-15 09:34:49 +0000 (Sun, 15 Jul 2012)
Log Message:
-----------
fix typo in class type
Modified Paths:
--------------
XoopsModules/newbb/branches/alfred/newbb/class/type.php
Modified: XoopsModules/newbb/branches/alfred/newbb/class/type.php
===================================================================
--- XoopsModules/newbb/branches/alfred/newbb/class/type.php 2012-07-15 09:28:17 UTC (rev 9881)
+++ XoopsModules/newbb/branches/alfred/newbb/class/type.php 2012-07-15 09:34:49 UTC (rev 9882)
@@ -33,12 +33,11 @@
function __construct()
{
- //$this->ArtObject("bb_type");
+ $this->XoopsObject();
$this->initVar('type_id', XOBJ_DTYPE_INT);
$this->initVar('type_name', XOBJ_DTYPE_TXTBOX, "");
$this->initVar('type_color', XOBJ_DTYPE_SOURCE, "");
$this->initVar('type_description', XOBJ_DTYPE_TXTBOX, "");
- //$this->initVar('type_order', XOBJ_DTYPE_INT, 99);
}
}
@@ -57,10 +56,11 @@
{
function NewbbTypeHandler(&$db)
{
- parent::__construct($db, "bb_categories", 'Category', 'cat_id', 'cat_title');
+ $this->__construct($db);
}
- function __construct(&$db) {
+ function __construct(&$db)
+ {
parent::__construct($db, 'bb_type', 'NewbbType', 'type_id', 'type_name');
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|