diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-03 03:33:52 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-03 03:33:52 +0000 |
commit | 949a233076ec18f86e60f90a7a8837cb422664af (patch) | |
tree | 0286c9cb2c3301a164505e39dccf02a4e0a98497 /mod/pages | |
parent | d4e4268d11612408e4989a5c57f69fcb2febe8aa (diff) | |
download | elgg-949a233076ec18f86e60f90a7a8837cb422664af.tar.gz elgg-949a233076ec18f86e60f90a7a8837cb422664af.tar.bz2 |
Refs #2428 almost done removing CONFIG access - mostly plugin start.php left
git-svn-id: http://code.elgg.org/elgg/trunk@7999 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/pages')
-rw-r--r-- | mod/pages/start.php | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/mod/pages/start.php b/mod/pages/start.php index b4e082f20..afa6651e3 100644 --- a/mod/pages/start.php +++ b/mod/pages/start.php @@ -207,20 +207,9 @@ function page_notify_message($hook, $entity_type, $returnvalue, $params) { if (($entity instanceof ElggEntity) && (($entity->getSubtype() == 'page_top') || ($entity->getSubtype() == 'page'))) { $descr = $entity->description; $title = $entity->title; - global $CONFIG; $url = elgg_get_site_url() . "pg/view/" . $entity->guid; - if ($method == 'sms') { - $owner = $entity->getOwnerEntity(); - return $owner->name . ' ' . elgg_echo("pages:via") . ': ' . $url . ' (' . $title . ')'; - } - if ($method == 'email') { - $owner = $entity->getOwnerEntity(); - return $owner->name . ' ' . elgg_echo("pages:via") . ': ' . $title . "\n\n" . $descr . "\n\n" . $entity->getURL(); - } - if ($method == 'site') { - $owner = $entity->getOwnerEntity(); - return $owner->name . ' ' . elgg_echo("pages:via") . ': ' . $title . "\n\n" . $descr . "\n\n" . $entity->getURL(); - } + $owner = $entity->getOwnerEntity(); + return $owner->name . ' ' . elgg_echo("pages:via") . ': ' . $title . "\n\n" . $descr . "\n\n" . $entity->getURL(); } return null; } |