From 1f0ea636d91fac4b4c51f3a98e940390ff5ed6a5 Mon Sep 17 00:00:00 2001 From: cash Date: Tue, 30 Nov 2010 01:13:16 +0000 Subject: Refs #2428 adds elgg_get_plugin_path() and elgg_get_data_path() git-svn-id: http://code.elgg.org/elgg/trunk@7476 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/elgglib.php | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'engine/lib/elgglib.php') diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php index ec67f97cf..7c787e513 100644 --- a/engine/lib/elgglib.php +++ b/engine/lib/elgglib.php @@ -1457,27 +1457,6 @@ function callpath_gatekeeper($path, $include_subdirs = true, $strict_mode = fals return false; } -/** - * Get the URL for the current (or specified) site - * - * @param int $site_guid The GUID of the site whose URL we want to grab - * @return string - */ -function elgg_get_site_url($site_guid = 0) { - if ($site_guid == 0) { - global $CONFIG; - return $CONFIG->wwwroot; - } - - $site = get_entity($site_guid); - - if (!$site instanceof ElggSite) { - return false; - } - - return $site->url; -} - /** * Returns the current page's complete URL. * -- cgit v1.2.3