Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed problem where uri was fixed segment and thus failed with tenant…

…s, now always looks for last uri segment
  • Loading branch information...
commit 51501caadb544338f8fcc237c55c31170530974a 1 parent a7fe6f0
Jonathan Kressaty authored
Showing with 7 additions and 6 deletions.
  1. +7 −6 call_log.php
View
13 call_log.php
@@ -9,10 +9,11 @@
$ci->twilio_token,
$ci->twilio_endpoint);
+ $last = end($ci->uri->segments);
- if ($ci->uri->segment(3) != null)
+ if ($last != null)
{
- $page = $ci->uri->segment(3);
+ $page = $last;
}
else
{
@@ -91,13 +92,13 @@ function status_text($status)
<div class="log_pagination" style="float: right;">
- <?php if($ci->uri->segment(3) != "0" AND $ci->uri->segment(3) != ""):?>
- <a href="<?php echo base_url();?>p/call_log/<?php echo ($ci->uri->segment(3) - 1);?>">Previous</a>
+ <?php if($last != "0" AND $last != ""):?>
+ <a href="<?php echo base_url();?>p/call_log/<?php echo ($last - 1);?>">Previous</a>
<?php endif?>
- <?php if($log_xml->Calls['numpages']-1 > $ci->uri->segment(3)):?>
- <a href="<?php echo base_url();?>p/call_log/<?php echo ($ci->uri->segment(3) + 1);?>">Next</a>
+ <?php if($log_xml->Calls['numpages']-1 > $last):?>
+ <a href="<?php echo base_url();?>p/call_log/<?php echo ($last + 1);?>">Next</a>
<?php endif?>
</div>
Please sign in to comment.
Something went wrong with that request. Please try again.