Functionality: Event Management at Back End
File: /administrator/components/com_joomsport/admin.joomsport.html.php
Function: bl_EventList()
Reason: The path for event image is incomplete
From:
<td align="center">
<?php
if( $row->e_img ){
echo '<img height="20px"src="/media/bearleague/events/'.$row->e_img.'" />';
}
?>
</td>
To:
<td align="center">
<?php
if( $row->e_img ){
echo '<img height="20px"src="'.JURI::base().'../media/bearleague/events/'.$row->e_img.'" />';
}
?>
</td>
Function: bl_editEvent()
From:
<script type="text/javascript">
<!--
......
function View_eventimg(){
getObj('view_img').innerHTML = '<img src="/media/bearleague/events/'+document.adminForm.e_img.value+'" width="25" />';
}
//-->
</script>
To:
<script type="text/javascript">
<!--
......
function View_eventimg(){
getObj('view_img').innerHTML = '<img src="<?php echo JURI::base(); ?>../media/bearleague/events/'+document.adminForm.e_img.value+'" width="25" />';
}
//-->
</script>
From:
<div id="view_img" style="width:50px; height:50px; margin: 10px; ">
<?php
if( $row->e_img ){
echo '<img id="img_div" src="/media/bearleague/events/'.$row->e_img.'" width="25" />';
}
?>
</div>
To:
<div id="view_img" style="width:50px; height:50px; margin: 10px; ">
<?php
if( $row->e_img ){
echo '<img id="img_div" src="'.JURI::base().'../media/bearleague/events/'.$row->e_img.'" width="25" />';
}
?>
</div>