summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLester Caine ext:(%22) <lester@lsces.co.uk>2012-05-06 23:53:03 +0100
committerLester Caine ext:(%22) <lester@lsces.co.uk>2012-05-06 23:53:03 +0100
commitb17abdea398acff5a8b406750006075c52de0d5c (patch)
treea80014a3dfb4592cfb3f31c98c1dff66bbefc39a
parent8c5fd59a9b75a0d551256d7ff8a5741eb26d06af (diff)
downloadboards-b17abdea398acff5a8b406750006075c52de0d5c.tar.gz
boards-b17abdea398acff5a8b406750006075c52de0d5c.tar.bz2
boards-b17abdea398acff5a8b406750006075c52de0d5c.zip
Match parameter types to parent and additional static function
-rw-r--r--BitBoard.php4
-rw-r--r--BitBoardPost.php4
-rw-r--r--BitBoardTopic.php2
3 files changed, 5 insertions, 5 deletions
diff --git a/BitBoard.php b/BitBoard.php
index 8a3e9b7..05dba32 100644
--- a/BitBoard.php
+++ b/BitBoard.php
@@ -610,7 +610,7 @@ WHERE map.`board_content_id`=lc.`content_id` AND ((s_lc.`user_id` < 0) AND (s.`i
* Generates the URL to the bitboard page
* @return the link to display the page.
*/
- public static function getDisplayUrlFromHash( $pParamHash ) {
+ public static function getDisplayUrlFromHash( &$pParamHash ) {
global $gBitSystem;
$ret = NULL;
@@ -714,7 +714,7 @@ WHERE map.`board_content_id`=lc.`content_id` AND ((s_lc.`user_id` < 0) AND (s.`i
return( $ret );
}
- function getLinkedBoard( $pContentId ) {
+ public static function getLinkedBoard( $pContentId ) {
global $gBitDb;
$ret = NULL;
if( BitBase::verifyId( $pContentId ) ) {
diff --git a/BitBoardPost.php b/BitBoardPost.php
index 05cb630..e3a573b 100644
--- a/BitBoardPost.php
+++ b/BitBoardPost.php
@@ -286,7 +286,7 @@ class BitBoardPost extends LibertyComment {
$whereSql = preg_replace( '/^[\s]*AND\b/i', 'WHERE ', $whereSql );
}
- $sql = "SELECT lcom.`comment_id`, lcom.`parent_id`, lcom.`root_id`, lcom.`thread_forward_sequence`, lcom.`thread_reverse_sequence`, lcom.`anon_name`, lc.*, uu.`email`, uu.`real_name`, uu.`login`, post.is_approved, post.is_warned, post.warned_message, uu.registration_date AS registration_date,
+ $sql = "SELECT lcom.`comment_id`, lcom.`parent_id`, lcom.`root_id`, lcom.`thread_forward_sequence`, lcom.`thread_reverse_sequence`, lcom.`anon_name`, lc.*, uu.`email`, uu.`real_name`, uu.`login`, post.is_approved, post.is_warned, post.warned_message, uu.registration_date AS registration_date,
tf_ava.`file_name` AS `avatar_file_name`, tf_ava.`mime_type` AS `avatar_mime_type`, tf_ava.`user_id` AS `avatar_user_id`, ta_ava.`attachment_id` AS `avatar_attachment_id`
$selectSql
FROM `".BIT_DB_PREFIX."liberty_comments` lcom
@@ -371,7 +371,7 @@ class BitBoardPost extends LibertyComment {
* Generates the URL to the bitboard page
* @return the link to display the page.
*/
- public static function getDisplayUrlFromHash( $pParamHash ) {
+ public static function getDisplayUrlFromHash( &$pParamHash ) {
global $gBitSystem;
$ret = NULL;
diff --git a/BitBoardTopic.php b/BitBoardTopic.php
index 57865ca..3247b4e 100644
--- a/BitBoardTopic.php
+++ b/BitBoardTopic.php
@@ -493,7 +493,7 @@ class BitBoardTopic extends LibertyMime {
}
*/
- public static function getDisplayUrlFromHash( $pParamHash ) {
+ public static function getDisplayUrlFromHash( &$pParamHash ) {
global $gBitSystem;
$ret = NULL;