]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Refs #2463: Removed some gratuitous calls to elgg_get_site_url() from core plugins
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 2 Nov 2010 19:24:59 +0000 (19:24 +0000)
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 2 Nov 2010 19:24:59 +0000 (19:24 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7195 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/blog/start.php
mod/bookmarks/start.php
mod/file/start.php
mod/groups/start.php
mod/pages/start.php
mod/riverdashboard/start.php
mod/thewire/start.php

index 208f3b9695974aad1e2ddddba08ca536848bc474..a4a4a7c65211585a9a7254b89cd2c587e35b0329 100644 (file)
@@ -23,7 +23,7 @@ function blog_init() {
        global $CONFIG;
        require_once dirname(__FILE__) . '/blog_lib.php';
 
-       add_menu(elgg_echo('blog:blogs'), elgg_get_site_url()."pg/blog/", array());
+       add_menu(elgg_echo('blog:blogs'), "pg/blog/", array());
 
        // run the setup upon activations or to upgrade old installations.
        run_function_once('blog_runonce', '1269370108');
index 2c82ca674f57815fc9cd5b75a606ecc9685c766e..8baa529382f7af257c930ecb8ec646e3f7e9fa7e 100644 (file)
@@ -11,7 +11,7 @@ function bookmarks_init() {
        global $CONFIG;
 
        //add a tools menu option
-       add_menu(elgg_echo('bookmarks'), elgg_get_site_url() . 'pg/bookmarks');
+       add_menu(elgg_echo('bookmarks'), 'pg/bookmarks');
 
        // Register a page handler, so we can have nice URLs
        register_page_handler('bookmarks', 'bookmarks_page_handler');
index 228e4788b7a1362475fcaf234d3f320b80ff5819..00501906075d605247ecbe1637e572dae0a5b5f2 100644 (file)
@@ -28,7 +28,7 @@
                global $CONFIG;
                                
                // Set up menu (tools dropdown)
-               add_menu(elgg_echo('files'), elgg_get_site_url() . "pg/file/");
+               add_menu(elgg_echo('files'), "pg/file/");
                                
                // Extend CSS
                elgg_extend_view('css', 'file/css');
index e2ddec5d10d9b891cdbc637c8203237044d34ceb..9782744aeae5d13d1c967c338824851c8a5c8c1b 100644 (file)
@@ -14,7 +14,7 @@
                global $CONFIG;
 
                // Set up the menu
-               add_menu(elgg_echo('groups'), elgg_get_site_url() . "pg/groups/world/");
+               add_menu(elgg_echo('groups'), "pg/groups/world/");
 
                // Register a page handler, so we can have nice URLs
                register_page_handler('groups','groups_page_handler');
index d688c2033004e07ed25655835c2e0fa03bebce52..ff31bb1d5cd006efe3523bab342934f0b585bdaf 100644 (file)
@@ -12,7 +12,7 @@
 function pages_init() {
        global $CONFIG;
 
-       add_menu(elgg_echo('pages'), elgg_get_site_url() . "mod/pages/world.php");
+       add_menu(elgg_echo('pages'), "mod/pages/world.php");
 
        // Register a page handler, so we can have nice URLs
        register_page_handler('pages','pages_page_handler');
index 34ea292175f0e1680844eb5555d816b864814002..0adc3d653ad17d77d6802e8dea1520408651328c 100644 (file)
@@ -9,7 +9,7 @@ function riverdashboard_init() {
        global $CONFIG;
        // Register and optionally replace the dashboard
        register_page_handler('dashboard', 'riverdashboard_page_handler');
-       add_menu(elgg_echo('activity'), elgg_get_site_url() . "pg/activity/");
+       add_menu(elgg_echo('activity'), "pg/activity/");
 
        // Page handler
        register_page_handler('activity', 'riverdashboard_page_handler');
index b33cd9e3b0b89c9b6a87297a6bba848afa89e3ba..456917d0c727f1f20b253277298757d5f1de185b 100644 (file)
@@ -23,7 +23,7 @@
                                global $CONFIG;
                                
                        // Set up menu for logged in users
-                               add_menu(elgg_echo('thewire:title'), elgg_get_site_url() . "pg/thewire");
+                               add_menu(elgg_echo('thewire:title'), "pg/thewire");
                                
                        // Extend system CSS with our own styles, which are defined in the thewire/css view
                                elgg_extend_view('css','thewire/css');