mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 21:57:51 +02:00
bugfixes: notices, pageIndex shouldn't create output if there's no text to send
This commit is contained in:
9
page.php
9
page.php
@@ -11,9 +11,9 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/page.php,v $
|
| $Source: /cvs_backup/e107_0.8/page.php,v $
|
||||||
| $Revision: 1.6 $
|
| $Revision: 1.7 $
|
||||||
| $Date: 2007-01-01 12:00:42 $
|
| $Date: 2007-01-17 13:36:57 $
|
||||||
| $Author: e107steved $
|
| $Author: mrpete $
|
||||||
|
|
|
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
@@ -109,6 +109,7 @@ class pageClass
|
|||||||
$tmp = explode(".", e_QUERY);
|
$tmp = explode(".", e_QUERY);
|
||||||
$this -> pageID = intval($tmp[0]);
|
$this -> pageID = intval($tmp[0]);
|
||||||
$this -> pageSelected = (isset($tmp[1]) ? intval($tmp[1]) : 0);
|
$this -> pageSelected = (isset($tmp[1]) ? intval($tmp[1]) : 0);
|
||||||
|
$this -> pageTitles = array();
|
||||||
if(defined("BULLET"))
|
if(defined("BULLET"))
|
||||||
{
|
{
|
||||||
$this -> bullet = "<img src='".THEME."images/".BULLET."' alt='' style='vertical-align: middle;' />";
|
$this -> bullet = "<img src='".THEME."images/".BULLET."' alt='' style='vertical-align: middle;' />";
|
||||||
@@ -286,10 +287,10 @@ class pageClass
|
|||||||
|
|
||||||
function pageIndex()
|
function pageIndex()
|
||||||
{
|
{
|
||||||
$itext = "<br /><br />";
|
|
||||||
$count = 0;
|
$count = 0;
|
||||||
foreach($this -> pageTitles as $title)
|
foreach($this -> pageTitles as $title)
|
||||||
{
|
{
|
||||||
|
if (!$count) { $itext = "<br /><br />"; }
|
||||||
$itext .= $this -> bullet." ".($count == $this -> pageSelected ? $title : "<a href='".e_SELF."?".$this -> pageID.".".$count."'>".$title."</a>")."<br />\n";
|
$itext .= $this -> bullet." ".($count == $this -> pageSelected ? $title : "<a href='".e_SELF."?".$this -> pageID.".".$count."'>".$title."</a>")."<br />\n";
|
||||||
$count++;
|
$count++;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user