Make docker work with 2.4 branch

This commit is contained in:
jekkos
2016-01-21 16:23:54 +01:00
parent 72fc36c8f5
commit 195c8a0601
2 changed files with 5 additions and 2 deletions

View File

@@ -11,6 +11,7 @@ RUN git clone https://github.com/jekkos/opensourcepos.git /app
# RUN cd app && npm install
RUN ln -fs /app/* /var/www
RUN rm /var/www/index.html
ADD ./start_container.sh /start_container.sh
RUN chmod 755 /start_container.sh
EXPOSE 80 3306

View File

@@ -512,14 +512,16 @@ class CI_Pagination {
{
$this->cur_page = str_replace(array($this->prefix, $this->suffix), '', $this->cur_page);
}
}
} else {
$this->cur_page = (string) $this->cur_page;
}
// If something isn't quite right, back to the default base page.
if ( ! ctype_digit($this->cur_page) OR ($this->use_page_numbers && (int) $this->cur_page === 0))
{
$this->cur_page = $base_page;
}
else
elseif (empty($this->cur_page))
{
// Make sure we're using integers for comparisons later.
$this->cur_page = (int) $this->cur_page;