1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-07 15:16:30 +02:00

Debug info added.

This commit is contained in:
Cameron
2017-02-28 11:00:32 -08:00
parent 9d546ce5d0
commit c070d8fdd6

View File

@@ -258,20 +258,22 @@ class news_front
{ {
echo "<div class='alert alert-info'>"; echo "<div class='alert alert-info'>";
echo "<h4>News Debug Info</h4>"; echo "<h4>News Debug Info</h4>";
echo "<b>action:</b> ".$this->action." "; echo "<table class='table table-striped table-bordered'>";
echo "<br /><b>subaction:</b> ".$this->subAction." "; echo "<tr><td><b>action:</b></td><td>".$this->action."</td></tr>";
echo "<br /><b>route:</b> ".$this->route." "; echo "<tr><td><b>subaction:</b></td><td>".$this->subAction."</td></tr>";
echo "<br /><b>e_QUERY:</b> ".e_QUERY." "; echo "<tr><td><b>route:</b></td><td>".$this->route."</td></tr>";
echo "<br /><b>CacheTimeout:</b> ".$this->cacheRefreshTime." "; echo "<tr><td><b>e_QUERY:</b></td><td>".e_QUERY."</td></tr>";
echo "<br /><b>_GET:</b> ".print_r($_GET,true); echo "<tr><td><b>e_PAGETITLE:</b></td><td>".defset('e_PAGETITLE','(unassigned)')."</td></tr>";
echo "<tr><td><b>PAGE_NAME:</b></td><td>".defset('PAGE_NAME','(unassigned)')."</td></tr>";
echo "<tr><td><b>CacheTimeout:</b></td><td>".$this->cacheRefreshTime."</td></tr>";
echo "<tr><td><b>_GET:</b></td><td>".print_r($_GET,true)."</td></tr>";
foreach($this->debugInfo as $key=>$val) foreach($this->debugInfo as $key=>$val)
{ {
echo "<br /><b>".$key.":</b> ".$val; echo "<tr><td><b>".$key.":</b></td><td>".$val."</tr>";
} }
echo "</table></div>";
echo "</div>";
} }
@@ -367,6 +369,8 @@ class news_front
$tp = e107::getParser(); $tp = e107::getParser();
$this->addDebug('setNewsFrontMeta (type)',$type);
if($type == 'news') if($type == 'news')
{ {
if($news['news_title'] && !defined('e_PAGETITLE')) if($news['news_title'] && !defined('e_PAGETITLE'))