mirror of
https://github.com/e107inc/e107.git
synced 2025-08-24 15:13:04 +02:00
PHP Notice removal.
This commit is contained in:
@@ -256,13 +256,14 @@ class news_shortcodes extends e_shortcode
|
||||
{
|
||||
$category_name = e107::getParser()->toHTML($this->news_item['category_name'], FALSE ,'defs');
|
||||
$category = array('id' => $this->news_item['category_id'], 'name' => $this->news_item['category_sef'] );
|
||||
return "<a class='".$GLOBALS['NEWS_CSSMODE']."_category' style='".(isset($this->param['catlink']) ? $this->param['catlink'] : "#")."' href='".e107::getUrl()->create('news/list/category', $category)."'>".$category_name."</a>";
|
||||
$categoryClass = varset($GLOBALS['NEWS_CSSMODE'],'');
|
||||
return "<a class='".$categoryClass."_category' style='".(isset($this->param['catlink']) ? $this->param['catlink'] : "#")."' href='".e107::getUrl()->create('news/list/category', $category)."'>".$category_name."</a>";
|
||||
}
|
||||
|
||||
function sc_newsdate($parm)
|
||||
{
|
||||
$date = ($this->news_item['news_start'] > 0) ? $this->news_item['news_start'] : $this->news_item['news_datestamp'];
|
||||
$con = new convert;
|
||||
$con = e107::getDate();
|
||||
if($parm == '')
|
||||
{
|
||||
return $con->convert_date($date, 'long');
|
||||
|
@@ -160,7 +160,7 @@ class core_news_sef_noid_url extends eUrlConfig
|
||||
*/
|
||||
public function parse($pathInfo, $params, $request, $router, $config)
|
||||
{
|
||||
$page = $params['page'] ? intval($params['page']) : '0';
|
||||
$page = !empty($params['page']) ? intval($params['page']) : '0';
|
||||
if(!$pathInfo)
|
||||
{
|
||||
## this var is used by default from legacy() method
|
||||
|
Reference in New Issue
Block a user