update Piwik to version 2.16 (fixes #91)
This commit is contained in:
parent
296343bf3b
commit
d885a4baa9
5833 changed files with 418860 additions and 226988 deletions
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
/**
|
||||
* Piwik - Open source web analytics
|
||||
* Piwik - free/libre analytics platform
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
|
|
@ -11,11 +11,6 @@ namespace Piwik;
|
|||
|
||||
use Exception;
|
||||
|
||||
/**
|
||||
* @see libs/tcpdf/tcpdf.php
|
||||
*/
|
||||
require_once PIWIK_INCLUDE_PATH . '/libs/tcpdf/tcpdf.php';
|
||||
|
||||
/**
|
||||
* TCPDF class wrapper.
|
||||
*
|
||||
|
|
@ -30,7 +25,7 @@ class TCPDF extends \TCPDF
|
|||
*
|
||||
* @see TCPDF::Footer()
|
||||
*/
|
||||
function Footer()
|
||||
public function Footer()
|
||||
{
|
||||
//Don't show footer on the frontPage
|
||||
if ($this->currentPageNo > 1) {
|
||||
|
|
@ -45,7 +40,7 @@ class TCPDF extends \TCPDF
|
|||
* @param $msg
|
||||
* @throws Exception
|
||||
*/
|
||||
function Error($msg)
|
||||
public function Error($msg)
|
||||
{
|
||||
$this->_destroy(true);
|
||||
throw new Exception($msg);
|
||||
|
|
@ -54,7 +49,7 @@ class TCPDF extends \TCPDF
|
|||
/**
|
||||
* Set current page number
|
||||
*/
|
||||
function setCurrentPageNo()
|
||||
public function setCurrentPageNo()
|
||||
{
|
||||
if (empty($this->currentPageNo)) {
|
||||
$this->currentPageNo = 1;
|
||||
|
|
@ -73,7 +68,7 @@ class TCPDF extends \TCPDF
|
|||
* @param bool $keepmargins
|
||||
* @param bool $tocpage
|
||||
*/
|
||||
function AddPage($orientation = '', $format = '', $keepmargins = false, $tocpage = false)
|
||||
public function AddPage($orientation = '', $format = '', $keepmargins = false, $tocpage = false)
|
||||
{
|
||||
parent::AddPage($orientation);
|
||||
$this->setCurrentPageNo();
|
||||
|
|
@ -84,7 +79,7 @@ class TCPDF extends \TCPDF
|
|||
*
|
||||
* @param string $footerContent
|
||||
*/
|
||||
function SetFooterContent($footerContent)
|
||||
public function SetFooterContent($footerContent)
|
||||
{
|
||||
$this->footerContent = $footerContent;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue