Permalink
Browse files

more php7 compatability fixes for depricated constructors.

Fix for #217.
  • Loading branch information...
Peter Adams
Peter Adams committed Dec 20, 2016
1 parent 610cfd1 commit 2f413b411ee0ed1f7c1c6937235139401f0bc1a1
Showing with 6 additions and 9 deletions.
  1. +3 −4 includes/template_class.php
  2. +2 −4 modules/base/classes/widget.php
  3. +1 −1 modules/base/templates/options_general.tpl
@@ -55,9 +55,8 @@ class Template {
*
* @access public
*/
function Template() {
function __construct() {
return;
}
/**
@@ -129,8 +128,8 @@ class CachedTemplate extends Template {
* @param $cache_id string unique cache identifier
* @param $expire int number of seconds the cache will live
*/
function CachedTemplate($cache_id = null, $expire = 900) {
$this->Template();
function __construct($cache_id = null, $expire = 900) {
parent::__construct();
$this->cache_id = $cache_id ? 'cache/' . md5($cache_id) : $cache_id;
$this->expire = $expire;
}
@@ -177,11 +177,9 @@ function getMetric($name) {
class owa_widgetView extends owa_view {
function owa_widgetView() {
function __construct() {
$this->owa_view();
return;
return parent::__construct();
}
function render($data) {
@@ -85,7 +85,7 @@
<div class="setting" id="p3p_policy">
<div class="title">P3P Compact Privacy Policy</div>
<div class="description">This setting controls the P3P compact privacy policy that is returned to the browser when OWA sets cookies. Click <a href="http://www.p3pwriter.com/LRN_111.asp">here</a> for more information on compact privacy policies and choosing the right one for your web site.</div>
<div class="description">This setting controls the P3P compact privacy policy that is returned to the browser when OWA sets cookies. Click <a href="https://www.w3.org/P3P/">here</a> for more information on compact privacy policies and choosing the right one for your web site.</div>
<div class="field"><input type="text" size="50" name="<?php echo $this->getNs();?>config[base.p3p_policy]" value="<?php $this->out( $config['p3p_policy'] );?>"></div>
</div>

0 comments on commit 2f413b4

Please sign in to comment.