From: rabuzarus <> Date: Wed, 11 Nov 2015 22:39:14 +0000 (+0100) Subject: forumlist: dbupdate X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=902735f6d41ae928ae74085640c8925fdd774f88;p=friendica.git forumlist: dbupdate --- diff --git a/boot.php b/boot.php index d1f0d705ff..6e9e45873a 100644 --- a/boot.php +++ b/boot.php @@ -19,7 +19,7 @@ define ( 'FRIENDICA_PLATFORM', 'Friendica'); define ( 'FRIENDICA_CODENAME', 'Lily of the valley'); define ( 'FRIENDICA_VERSION', '3.4.2' ); define ( 'DFRN_PROTOCOL_VERSION', '2.23' ); -define ( 'DB_UPDATE_VERSION', 1190 ); +define ( 'DB_UPDATE_VERSION', 1191 ); define ( 'EOL', "
\r\n" ); define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' ); diff --git a/include/dbstructure.php b/include/dbstructure.php index 0dd74ab15f..7d8f89df6c 100644 --- a/include/dbstructure.php +++ b/include/dbstructure.php @@ -2,7 +2,7 @@ require_once("boot.php"); require_once("include/text.php"); -define('NEW_UPDATE_ROUTINE_VERSION', 1170); +define('NEW_UPDATE_ROUTINE_VERSION', 1191); /* * send the email and do what is needed to do on update fails diff --git a/include/forums.php b/include/forums.php index 4756580691..e604a31567 100644 --- a/include/forums.php +++ b/include/forums.php @@ -2,20 +2,20 @@ /** * @file include/forums.php - * @brief functions related to forum functionality * + * @brief Functions related to forum functionality * */ /** - * @brief function to list all forums a user is connected with + * @brief Function to list all forums a user is connected with * * @param int $uid of the profile owner * @param boolean $showhidden - * show frorums which are not hidden + * Show frorums which are not hidden * @param boolean $lastitem - * sort by lastitem + * Sort by lastitem * @param boolean $showprivate - * show private groups + * Show private groups * * @returns array * 'url' => forum url @@ -27,11 +27,11 @@ function get_forumlist($uid, $showhidden = true, $lastitem, $showprivate = false $forumlist = array(); - $order = (($showhidden) ? '' : " AND `hidden` = 0 "); + $order = (($showhidden) ? '' : ' AND `hidden` = 0 '); $order .= (($lastitem) ? ' ORDER BY `last-item` ASC ' : ' ORDER BY `name` ASC '); - $select = "`forum` = 1"; + $select = '`forum` = 1'; if ($showprivate) { - $select = "( `forum` = 1 OR `prv` = 1 )"; + $select = '( `forum` = 1 OR `prv` = 1 )'; } $contacts = q("SELECT `contact`.`id`, `contact`.`url`, `contact`.`name`, `contact`.`micro` FROM contact @@ -54,7 +54,7 @@ function get_forumlist($uid, $showhidden = true, $lastitem, $showprivate = false /** - * @brief forumlist widget + * @brief Forumlist widget * * Sidebar widget to show subcribed friendica forums. If activated * in the settings, it appears at the notwork page sidebar @@ -95,7 +95,7 @@ function widget_forumlist($a) { $tpl = get_markup_template('widget_forumlist.tpl'); $o .= replace_macros($tpl,array( - '$title' => t("Forums"), + '$title' => t('Forums'), '$forums' => $entries, '$link_desc' => t('External link to forum'), '$total' => $total, @@ -108,7 +108,7 @@ function widget_forumlist($a) { } /** - * @brief format forumlist as contact block + * @brief Format forumlist as contact block * * This function is used to show the forumlist in * the advanced profile. @@ -145,4 +145,4 @@ function forumlist_profile_advanced($uid) { if(count($contacts) > 0) $o .= $forumlist; return $o; -} \ No newline at end of file +} diff --git a/update.php b/update.php index 33b4560c09..b6faa85081 100644 --- a/update.php +++ b/update.php @@ -1,6 +1,6 @@ {{/if}} - \ No newline at end of file +