aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Clay <steve@mrclay.org>2012-04-09 15:07:15 -0400
committerSteve Clay <steve@mrclay.org>2012-04-09 15:07:15 -0400
commite80bb29671b7887d5749a9eb147be38e6f0401f4 (patch)
treee090dca2a364d65c0351e338fe2a5b62073a4326
parent01c44e9002d03f58c9a5271c6256096de3273eb5 (diff)
downloadelgg-e80bb29671b7887d5749a9eb147be38e6f0401f4.tar.gz
elgg-e80bb29671b7887d5749a9eb147be38e6f0401f4.tar.bz2
Removed deprecated call, unused variable
-rw-r--r--lib/videolist.php3
-rw-r--r--start.php2
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/videolist.php b/lib/videolist.php
index 96a2c6335..ae2441847 100644
--- a/lib/videolist.php
+++ b/lib/videolist.php
@@ -27,8 +27,7 @@ function videolist_parseurl($url){
*/
function videolist_get_data($parsed) {
$videotype = $parsed['videotype'];
- $video_id = $parsed['video_id'];
-
+
if(is_callable("videolist_get_data_$videotype")){
return array_merge($parsed, call_user_func("videolist_get_data_$videotype", $parsed));
} else {
diff --git a/start.php b/start.php
index d764a78c9..bfb1796b9 100644
--- a/start.php
+++ b/start.php
@@ -238,7 +238,7 @@ function videolist_embed_get_sections($hook, $type, $value, $params) {
*/
function videolist_embed_get_items($hook, $type, $value, $params) {
$options = array(
- 'owner_guid' => get_loggedin_userid(),
+ 'owner_guid' => elgg_get_logged_in_user_guid(),
'type_subtype_pair' => array('object' => 'videolist_item'),
'count' => TRUE
);