1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 13:47:31 +02:00

PHP8 Remove constant conflict.

This commit is contained in:
Cameron
2021-01-13 17:38:34 -08:00
parent a32e646bf0
commit d22a25c877
2 changed files with 11 additions and 8 deletions

View File

@@ -295,29 +295,31 @@ class news {
if (!isset($param['image_nonew_small']))
{
if (!defined("IMAGE_nonew_small"))
/* if (!defined("IMAGE_nonew_small"))
{
define("IMAGE_nonew_small", (file_exists(THEME."images/nonew_comments.png") ? "<img src='".THEME_ABS."images/nonew_comments.png' alt='' /> " : "<img src='".e_IMAGE_ABS."generic/nonew_comments.png' alt='' />"));
}
$param['image_nonew_small'] = IMAGE_nonew_small;
}*/
$param['image_nonew_small'] = (file_exists(THEME."images/nonew_comments.png") ? "<img src='".THEME_ABS."images/nonew_comments.png' alt='' /> " : "<img src='".e_IMAGE_ABS."generic/nonew_comments.png' alt='' />");
}
if (!isset($param['image_new_small']))
{
if (!defined("IMAGE_new_small"))
/* if (!defined("IMAGE_new_small"))
{
define("IMAGE_new_small", (file_exists(THEME."images/new_comments.png") ? "<img src='".THEME_ABS."images/new_comments.png' alt='' /> " : "<img src='".e_IMAGE_ABS."generic/new_comments.png' alt='' /> "));
}
$param['image_new_small'] = IMAGE_new_small;
*/
$param['image_new_small'] = (file_exists(THEME."images/new_comments.png") ? "<img src='".THEME_ABS."images/new_comments.png' alt='' /> " : "<img src='".e_IMAGE_ABS."generic/new_comments.png' alt='' /> ");
}
if (!isset($param['image_sticky']))
{
if (!defined("IMAGE_sticky"))
/* if (!defined("IMAGE_sticky"))
{
define("IMAGE_sticky", (file_exists(THEME."images/sticky.png") ? "<img src='".THEME_ABS."images/sticky.png' alt='' /> " : "<img src='".e_IMAGE_ABS."generic/sticky.png' alt='' style='width: 14px; height: 14px; vertical-align: bottom' /> "));
}
$param['image_sticky'] = IMAGE_sticky;
}*/
$param['image_sticky'] = (file_exists(THEME."images/sticky.png") ? "<img src='".THEME_ABS."images/sticky.png' alt='' /> " : "<img src='".e_IMAGE_ABS."generic/sticky.png' alt='' style='width: 14px; height: 14px; vertical-align: bottom' /> ");
}
e107::setRegistry('current_news_item', $news);

View File

@@ -913,6 +913,7 @@ class e107_user_extended
// wrong type
if(false === $field_info)
{
trigger_error('$field_info is false: '.__METHOD__, E_USER_NOTICE);
e107::getMessage()->addDebug("\$field_info is false ".__METHOD__);
return false;
}