aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-01-08 14:45:21 -0800
committerzotlabs <mike@macgirvin.com>2018-01-08 14:45:21 -0800
commit62f0266f467a03ce313edd8dc582c5c194cd5396 (patch)
tree2b4925b8ea8876df531232076e52f2bd8a10fd24 /include
parent0d415fb3c9db41ee97b7ce933ebc84eab38a1fa4 (diff)
downloadvolse-hubzilla-62f0266f467a03ce313edd8dc582c5c194cd5396.tar.gz
volse-hubzilla-62f0266f467a03ce313edd8dc582c5c194cd5396.tar.bz2
volse-hubzilla-62f0266f467a03ce313edd8dc582c5c194cd5396.zip
scrutinizer issues: none worthy of including in 3.0, there will likely be a few hundred more before all is said and done.
Diffstat (limited to 'include')
-rw-r--r--include/event.php6
-rw-r--r--include/import.php2
2 files changed, 4 insertions, 4 deletions
diff --git a/include/event.php b/include/event.php
index 282c1a9d7..c1cf59425 100644
--- a/include/event.php
+++ b/include/event.php
@@ -6,6 +6,8 @@
use Sabre\VObject;
+require_once('include/bbcode.php');
+
/**
* @brief Returns an event as HTML.
*
@@ -14,7 +16,6 @@ use Sabre\VObject;
*/
function format_event_html($ev) {
- require_once('include/bbcode.php');
if(! ((is_array($ev)) && count($ev)))
return '';
@@ -192,7 +193,7 @@ function format_todo_ical($ev) {
function format_ical_text($s) {
- require_once('include/bbcode.php');
+
require_once('include/html2plain.php');
$s = html2plain(bbcode($s));
@@ -983,7 +984,6 @@ function event_store_item($arr, $event) {
require_once('include/datetime.php');
require_once('include/items.php');
- require_once('include/bbcode.php');
$item = null;
diff --git a/include/import.php b/include/import.php
index 5a655ce4c..51791347a 100644
--- a/include/import.php
+++ b/include/import.php
@@ -184,7 +184,7 @@ function import_profiles($channel, $profiles) {
*
* @param array $channel
* @param array $hublocs
- * @param unknown $seize
+ * @param boolean $seize
* @param boolean $moving (optional) default false
*/
function import_hublocs($channel, $hublocs, $seize, $moving = false) {