|
From: <var...@us...> - 2021-11-25 15:13:03
|
Revision: 10690
http://sourceforge.net/p/phpwiki/code/10690
Author: vargenau
Date: 2021-11-25 15:13:00 +0000 (Thu, 25 Nov 2021)
Log Message:
-----------
Duplicate function makeBox from WikiPlugin to avoid warning
Modified Paths:
--------------
trunk/lib/WikiTheme.php
Modified: trunk/lib/WikiTheme.php
===================================================================
--- trunk/lib/WikiTheme.php 2021-11-25 14:49:07 UTC (rev 10689)
+++ trunk/lib/WikiTheme.php 2021-11-25 15:13:00 UTC (rev 10690)
@@ -1874,14 +1874,23 @@
{
function __construct($title, $body)
{
- require_once 'lib/WikiPlugin.php';
$this->title = $title;
$this->body = $body;
}
+ function makeBox($title, $body)
+ {
+ if (!$title) {
+ $title = $this->getName();
+ }
+ return HTML::div(array('class' => 'box'),
+ HTML::div(array('class' => 'box-title'), $title),
+ HTML::div(array('class' => 'box-data'), $body));
+ }
+
function format()
{
- return WikiPlugin::makeBox($this->title, $this->body);
+ return $this->makeBox($this->title, $this->body);
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|