summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlester@host81-138-11-136.in-addr.btopenworld.com <lester@host81-138-11-136.in-addr.btopenworld.com>2012-11-24 17:28:57 +0000
committerlester@host81-138-11-136.in-addr.btopenworld.com <lester@host81-138-11-136.in-addr.btopenworld.com>2012-11-24 17:28:57 +0000
commitac6c78d71c933c65730fdd1de5cb9e3850236f5b (patch)
tree4695edf9283a5e2e19de880478719aa3b60c97e4
parenta506a05505f21cd5ae81ae0cf730d700a0ce5e6e (diff)
downloadboards-ac6c78d71c933c65730fdd1de5cb9e3850236f5b.tar.gz
boards-ac6c78d71c933c65730fdd1de5cb9e3850236f5b.tar.bz2
boards-ac6c78d71c933c65730fdd1de5cb9e3850236f5b.zip
prepGetList should be static
-rw-r--r--BitBoard.php4
-rw-r--r--BitBoardPost.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/BitBoard.php b/BitBoard.php
index 4f20f7d..3213e65 100644
--- a/BitBoard.php
+++ b/BitBoard.php
@@ -440,7 +440,7 @@ class BitBoard extends LibertyMime {
return $ret;
}
- public static function prepGetList( &$pParamHash ) {
+ function prepGetList( &$pParamHash ) {
if( empty( $pParamHash['sort_mode'] ) ) {
// default sort_mode for boards is alphabetical
$pParamHash['sort_mode'] = 'title_asc';
@@ -454,7 +454,7 @@ class BitBoard extends LibertyMime {
function getList( &$pParamHash ) {
global $gBitSystem, $gBitUser;
// this makes sure parameters used later on are set
- LibertyContent::prepGetList( $pParamHash );
+ $this->prepGetList( $pParamHash );
$selectSql = $joinSql = $whereSql = '';
$bindVars = array();
diff --git a/BitBoardPost.php b/BitBoardPost.php
index ff2cd28..fa5ca40 100644
--- a/BitBoardPost.php
+++ b/BitBoardPost.php
@@ -244,7 +244,7 @@ class BitBoardPost extends LibertyComment {
function getList( &$pListHash ) {
global $gBitUser, $gBitSystem;
- LibertyContent::prepGetList( $pListHash );
+ $this->prepGetList( $pListHash );
$joinSql = $selectSql = $whereSql = '';