Loading...
 
Skip to main content

Module: since_last_visit_new does not allow setting of the title

Status
Open
Subject
Module: since_last_visit_new does not allow setting of the title
Version
3.x
Category
  • Consistency
Feature
Modules
Resolution status
New
Submitted by
bcarson
Lastmod by
bcarson
Rating
(0)
Description

The module mod-since_last_visit_new.php does not currently check to see if a parameter has been set to set the title. As a result, the current code always displays "Since your last visit...".

The desired effect is to allow an authorized user to set the module title using the 'title=my custom title' parameter.

Solution

Change the 5 lines at the bottom of the script to:

Copy to clipboard
$slvn_info = since_last_visit_new($user, $module_params); $slvn_info["label"] = (isset($module_params["title"]) ? $module_params["title"] : $slvn_info["label"]); $smarty->assign('module_title', isset($module_params["title"]) ? $module_params["title"] : $slvn_info["label"]); $smarty->assign('slvn_info', $slvn_info); $smarty->assign('nonums', isset($module_params["nonums"]) ? $module_params["nonums"] : 'n');
Importance
3
Priority
15
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
2768
Created
Friday 25 September, 2009 13:42:23 UTC
by Unknown
LastModif
Friday 25 September, 2009 13:42:23 UTC


Show PHP error messages