mirror of
https://github.com/e107inc/e107.git
synced 2025-07-30 19:30:25 +02:00
Bugtracker #4427 - make path references absolute
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/calendar_menu/calendar_shortcodes.php,v $
|
||||
| $Revision: 1.8 $
|
||||
| $Date: 2008-03-20 20:49:02 $
|
||||
| $Revision: 1.9 $
|
||||
| $Date: 2008-07-28 20:16:10 $
|
||||
| $Author: e107steved $
|
||||
|
|
||||
+----------------------------------------------------------------------------+
|
||||
@@ -143,7 +143,7 @@ SC_BEGIN EC_SHOWEVENT_IMAGE
|
||||
global $ev;
|
||||
if($ev['event_cat_icon'] && file_exists(e_PLUGIN."calendar_menu/images/".$ev['event_cat_icon']))
|
||||
{
|
||||
$img = "<img style='border:0' src='".e_PLUGIN."calendar_menu/images/".$ev['event_cat_icon']."' alt='' height='".$ev['imagesize']."' width='".$ev['imagesize']."' />";
|
||||
$img = "<img style='border:0' src='".e_PLUGIN_ABS."calendar_menu/images/".$ev['event_cat_icon']."' alt='' height='".$ev['imagesize']."' width='".$ev['imagesize']."' />";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -211,7 +211,7 @@ SC_BEGIN EC_CALENDAR_CALENDAR_RECENT_ICON
|
||||
global $ev;
|
||||
if (!isset($ev['is_recent'])) return "";
|
||||
if (!$ev['startofevent']) return ""; // Only display on first day of multi-day events
|
||||
// $recent_icon = e_PLUGIN."calendar_menu/images/recent_icon.png";
|
||||
// $recent_icon = e_PLUGIN_ABS."calendar_menu/images/recent_icon.png";
|
||||
$recent_icon = EC_RECENT_ICON;
|
||||
if (file_exists($recent_icon))
|
||||
{
|
||||
@@ -348,7 +348,7 @@ SC_BEGIN EC_EVENT_CAT_ICON
|
||||
global $thisevent;
|
||||
if ($thisevent['event_cat_icon'] && file_exists(e_PLUGIN."calendar_menu/images/".$thisevent['event_cat_icon']))
|
||||
{
|
||||
return "<img style='border:0' src='".e_PLUGIN."calendar_menu/images/".$thisevent['event_cat_icon']."' alt='' /> ";
|
||||
return "<img style='border:0' src='".e_PLUGIN_ABS."calendar_menu/images/".$thisevent['event_cat_icon']."' alt='' /> ";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -11,8 +11,8 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/calendar_menu/calendar_template.php,v $
|
||||
| $Revision: 1.4 $
|
||||
| $Date: 2007-12-15 21:46:20 $
|
||||
| $Revision: 1.5 $
|
||||
| $Date: 2008-07-28 20:16:10 $
|
||||
| $Author: e107steved $
|
||||
|
|
||||
+----------------------------------------------------------------------------+
|
||||
@@ -24,12 +24,22 @@ global $imode;
|
||||
if (varsettrue($imode))
|
||||
{ // Its 0.8
|
||||
$ec_images_path = e_IMAGE.'packs/'.$imode.'/';
|
||||
if (!defined('EC_RECENT_ICON')) {define('EC_RECENT_ICON',$ec_images_path.'generic/new.png'); } // Filename of icon used to flag recent events
|
||||
$ec_images_path_abs = e_IMAGE_ABS.'packs/'.$imode.'/';
|
||||
if (!defined('EC_RECENT_ICON'))
|
||||
{
|
||||
define('EC_RECENT_ICON',$ec_images_path.'generic/new.png');
|
||||
define('EC_RECENT_ICON_ABS',$ec_images_path_abs.'generic/new.png');
|
||||
} // Filename of icon used to flag recent events
|
||||
}
|
||||
else
|
||||
{
|
||||
$ec_images_path = e_IMAGE;
|
||||
if (!defined('EC_RECENT_ICON')) {define('EC_RECENT_ICON',e_IMAGE.'generic/'.IMODE.'/new.png'); } // Filename of icon used to flag recent events
|
||||
$ec_images_path_abs = e_IMAGE_ABS;
|
||||
if (!defined('EC_RECENT_ICON'))
|
||||
{
|
||||
define('EC_RECENT_ICON',e_IMAGE.'generic/'.IMODE.'/new.png');
|
||||
define('EC_RECENT_ICON_ABS',e_IMAGE_ABS.'generic/'.IMODE.'/new.png');
|
||||
} // Filename of icon used to flag recent events
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user