mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 12:48:24 +01:00
PHP Notice removal and debug info styling.
This commit is contained in:
parent
d73f39f61d
commit
a68cf279b6
@ -2434,15 +2434,15 @@ class error_handler
|
|||||||
{
|
{
|
||||||
$text .= "
|
$text .= "
|
||||||
<tr>
|
<tr>
|
||||||
<td>".$key."</td>
|
<td class='forumheader3'>".$key."</td>
|
||||||
<td>";
|
<td class='forumheader3'>";
|
||||||
$text .= !empty($val['class']) ? $val['class']."->" : '';
|
$text .= !empty($val['class']) ? $val['class']."->" : '';
|
||||||
$text .= !empty($val['include_filename']) ? "include: ". str_replace($this->docroot,'', $val['include_filename']) : '';
|
$text .= !empty($val['include_filename']) ? "include: ". str_replace($this->docroot,'', $val['include_filename']) : '';
|
||||||
$text .= !empty($val['function']) ? $val['function']."(" : "";
|
$text .= !empty($val['function']) ? $val['function']."(" : "";
|
||||||
$text .= !empty($val['params']) ? print_r($val['params'],true) : '';
|
$text .= !empty($val['params']) ? print_r($val['params'],true) : '';
|
||||||
$text .= !empty($val['function']) ? ")" : "";
|
$text .= !empty($val['function']) ? ")" : "";
|
||||||
$text .="</td>
|
$text .="</td>
|
||||||
<td>";
|
<td class='forumheader3'>";
|
||||||
$text .= str_replace($this->docroot,'', $val['file']).":".$val['line'];
|
$text .= str_replace($this->docroot,'', $val['file']).":".$val['line'];
|
||||||
$text .= "</td>
|
$text .= "</td>
|
||||||
</tr>";
|
</tr>";
|
||||||
@ -2480,7 +2480,7 @@ class error_handler
|
|||||||
{
|
{
|
||||||
foreach ($this->errors as $key => $value)
|
foreach ($this->errors as $key => $value)
|
||||||
{
|
{
|
||||||
$ret .= "<tr class='forumheader3'><td>{$value['short']}</td></tr>\n";
|
$ret .= "<tr><td class='forumheader3'>{$value['short']}</td></tr>\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ class bb_img extends e_bb_base
|
|||||||
|
|
||||||
$figcaption = false;
|
$figcaption = false;
|
||||||
|
|
||||||
if($imgParms['figcaption'])
|
if(!empty($imgParms['figcaption']))
|
||||||
{
|
{
|
||||||
$figcaption = $imgParms['figcaption'];
|
$figcaption = $imgParms['figcaption'];
|
||||||
unset($imgParms['figcaption']);
|
unset($imgParms['figcaption']);
|
||||||
|
@ -816,6 +816,10 @@ class admin_shortcodes
|
|||||||
$parsed = file_get_contents($file);
|
$parsed = file_get_contents($file);
|
||||||
$tmp = e107::unserialize($parsed);
|
$tmp = e107::unserialize($parsed);
|
||||||
|
|
||||||
|
if(!defined('e_MULTISITE_MATCH'))
|
||||||
|
{
|
||||||
|
define('e_MULTISITE_MATCH', null);
|
||||||
|
}
|
||||||
// e107::getDebug()->log($tmp);
|
// e107::getDebug()->log($tmp);
|
||||||
|
|
||||||
$text = '<ul class="nav nav-admin navbar-nav navbar-right">
|
$text = '<ul class="nav nav-admin navbar-nav navbar-right">
|
||||||
|
@ -870,10 +870,10 @@ class e107_db_debug {
|
|||||||
if (!$bRowHeaders)
|
if (!$bRowHeaders)
|
||||||
{
|
{
|
||||||
$bRowHeaders = true;
|
$bRowHeaders = true;
|
||||||
$text .= "<tr class='fcaption'><td><b>".implode("</b></td><td><b>", array_keys($curLog))."</b></td></tr>\n";
|
$text .= "<tr><td class='fcaption' style='text-align:left'><b>".implode("</b></td><td class='fcaption' style='text-align:left'><b>", array_keys($curLog))."</b></td></tr>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
$text .= "<tr class='forumheader3'><td>".implode(" </td><td>", array_values($curLog))." </td></tr>\n";
|
$text .= "<tr ><td class='forumheader3'>".implode(" </td><td class='forumheader3'>", array_values($curLog))." </td></tr>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
$text .= "</table><br />\n";
|
$text .= "</table><br />\n";
|
||||||
|
@ -21,7 +21,7 @@ vf, vt, etc. in the comments refer to the LAN defined in the previously separate
|
|||||||
vf = viewforum, vt = viewtopic, p = post, etc.
|
vf = viewforum, vt = viewtopic, p = post, etc.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
define("e_PAGETITLE", "Forum");
|
// define("e_PAGETITLE", "Forum");
|
||||||
|
|
||||||
// forum.php (forum_template)
|
// forum.php (forum_template)
|
||||||
// define("LAN_FORUM_0001", "Forum"); // LAN_46
|
// define("LAN_FORUM_0001", "Forum"); // LAN_46
|
||||||
|
@ -72,7 +72,7 @@ class page_related // replace 'e_' with 'plugin-folder_'
|
|||||||
$items[] = array(
|
$items[] = array(
|
||||||
'title' => $title,
|
'title' => $title,
|
||||||
'url' => e107::getUrl()->create('page/view/index',$row), // '{e_BASE}news.php?extend.'.$row['news_id'],
|
'url' => e107::getUrl()->create('page/view/index',$row), // '{e_BASE}news.php?extend.'.$row['news_id'],
|
||||||
'summary' => $row['page_metadescr'],
|
'summary' => $row['page_metadscr'],
|
||||||
'image' => $row['menu_image']
|
'image' => $row['menu_image']
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user