From 01f31c2f2060a925c22b3f92e841d4f951d1825c Mon Sep 17 00:00:00 2001 From: Klaus Date: Sat, 15 Feb 2014 22:25:14 +0100 Subject: Make asset icons work in subdir installs as well. This should be the right way I guess, especially if red# is installed in a subdirectory. (untested) --- include/reddav.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/reddav.php b/include/reddav.php index cb2aa3bb9..6182aeacd 100644 --- a/include/reddav.php +++ b/include/reddav.php @@ -1072,7 +1072,7 @@ class RedBrowser extends DAV\Browser\Plugin { * @return string */ protected function getAssetUrl($assetName) { - return '/cloud/?sabreAction=asset&assetName=' . urlencode($assetName); + return z_root() .'/cloud/?sabreAction=asset&assetName=' . urlencode($assetName); } } -- cgit v1.2.3 From 29f6a1ee33b27886afc135e05ecac592651bb7b2 Mon Sep 17 00:00:00 2001 From: Klaus Date: Sun, 16 Feb 2014 10:25:32 +0100 Subject: removed unused function posted_date_widget This functions seems not to be used anywhere. include/widgets.php contains widget_archive($arr) which has the same functionality. --- include/items.php | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/include/items.php b/include/items.php index 3c10b8f5c..9dc65f89c 100755 --- a/include/items.php +++ b/include/items.php @@ -3622,26 +3622,6 @@ function posted_dates($uid,$wall) { } -function posted_date_widget($url,$uid,$wall) { - $o = ''; - - if(! feature_enabled($uid,'archives')) - return $o; - - $ret = posted_dates($uid,$wall); - if(! count($ret)) - return $o; - - $o = replace_macros(get_markup_template('posted_date_widget.tpl'),array( - '$title' => t('Archives'), - '$size' => ((count($ret) > 6) ? 6 : count($ret)), - '$url' => $url, - '$dates' => $ret - )); - return $o; -} - - function fetch_post_tags($items,$link = false) { $tag_finder = array(); -- cgit v1.2.3