From 7088874171f29e4f6decae143681bab458134a0b Mon Sep 17 00:00:00 2001 From: Sem Date: Thu, 5 Sep 2013 20:46:40 +0200 Subject: Removed deprecated function uses. --- actions/reset.php | 9 --------- languages/en.php | 21 ++++++++++----------- start.php | 5 ++--- .../default/widgets/latest_album_index/content.php | 4 ++-- 4 files changed, 14 insertions(+), 25 deletions(-) delete mode 100644 actions/reset.php diff --git a/actions/reset.php b/actions/reset.php deleted file mode 100644 index af6967f37..000000000 --- a/actions/reset.php +++ /dev/null @@ -1,9 +0,0 @@ - 'Page not found', 'custom_index_widgets:index' => "Index widgetisation", 'custom_index_widgets:num_items' => "Number of items", - 'custom_index_widgets:reset' => "Reset all zones", 'custom_index_widgets:pleaselogin' => "Please, please, login to see more...", @@ -61,22 +60,22 @@ 'custom_index_widgets:login_style'=>"Login position", 'custom_index_widgets:inlayout'=>"In layout", 'custom_index_widgets:topbar'=>"Top bar", - 'custom_index_widgets:widget_all_groups' => "All groups", + 'custom_index_widgets:widget_all_groups' => "All groups", - "custom_index_widgets:showdashboard"=>"End index with dashboard", + "custom_index_widgets:showdashboard"=>"End index with dashboard", "custom_index_widgets:showdashboard_yes"=>"Yes", - "custom_index_widgets:showdashboard_no"=>"No", - "custom_index_widgets:guest_only" => "Guest only", + "custom_index_widgets:showdashboard_no"=>"No", + "custom_index_widgets:guest_only" => "Guest only", "custom_index_widgets:box_style" => "Box Style", "custom_index_widgets:social_share_index" => "Social Share", "custom_index_widgets:login_index"=>"Login", "admin:appearance:custom_index_widgets" => "Index Widgets", - // time limit - "custom_index_widgets:widget_created_time_limit" => "Time lapse", - "custom_index_widgets:time_limit:all" => "All time", - "custom_index_widgets:time_limit:day" => "Last day", - "custom_index_widgets:time_limit:week" => "Last week", - "custom_index_widgets:time_limit:month" => "Last month" + // time limit + "custom_index_widgets:widget_created_time_limit" => "Time lapse", + "custom_index_widgets:time_limit:all" => "All time", + "custom_index_widgets:time_limit:day" => "Last day", + "custom_index_widgets:time_limit:week" => "Last week", + "custom_index_widgets:time_limit:month" => "Last month" ); diff --git a/start.php b/start.php index 0bbc1d5c6..70a755dc2 100644 --- a/start.php +++ b/start.php @@ -11,12 +11,12 @@ function custom_index_widgets_init() { $ciw_layout = elgg_get_plugin_setting("ciw_layout", "custom_index_widgets"); if ($ciw_layout == NULL) { - set_plugin_setting("ciw_layout", "index_2rmsb", "custom_index_widgets"); + elgg_set_plugin_setting("ciw_layout", "index_2rmsb", "custom_index_widgets"); } $ciw_showdashboard = elgg_get_plugin_setting("ciw_showdashboard", "custom_index_widgets"); if ($ciw_showdashboard == NULL) { - set_plugin_setting("ciw_showdashboard", "yes", "custom_index_widgets"); + elgg_set_plugin_setting("ciw_showdashboard", "yes", "custom_index_widgets"); } elgg_register_widget_type('latest_members_index', elgg_echo('custom_index_widgets:latest_members_index'), elgg_echo('custom_index_widgets:latest_members_index'), "custom_index_widgets", true); elgg_register_widget_type('inline_content_index', elgg_echo('custom_index_widgets:inline_content_index'), elgg_echo('custom_index_widgets:inline_content_index'), "custom_index_widgets", true); @@ -68,7 +68,6 @@ function custom_index_widgets_init() { elgg_register_plugin_hook_handler('index', 'system', 'custom_index_widgets'); elgg_register_page_handler ('custom_index_widgets', 'custom_index_widgets_page_handler'); - elgg_register_action('custom_index_widgets/reset', elgg_get_plugins_path() . 'custom_index_widgets/actions/reset.php', 'admin'); } diff --git a/views/default/widgets/latest_album_index/content.php b/views/default/widgets/latest_album_index/content.php index f57baee9d..c511a775a 100644 --- a/views/default/widgets/latest_album_index/content.php +++ b/views/default/widgets/latest_album_index/content.php @@ -32,10 +32,10 @@ ?>
-
time_created);?>
+
time_created);?>
countComments(); if ($numcomments) echo "getURL()}\">" . sprintf(elgg_echo("comments")) . " (" . $numcomments . ")
"; ?> -- cgit v1.2.3