Jump to content
Дизайн и модификация IPS Community IPBSkinsBETA
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
siv1987

Ошибка в DEV mode на странице плагинов

Recommended Posts

Кто нибудь сообщите о багрепорте на странице плагинов в режиме разработчиков при наличие новых версий плагинов.

 

В коде

 

				if( $data['released'] AND \intval( $data['released'] ) == $data['released'] AND \strlen( $data['released'] ) == 10 )
			{
				$released	= (string) \IPS\DateTime::ts( $data['released'] )->localeDate();
			}
			....
			\IPS\Theme::i()->getTemplate( 'global', 'core' )->updatebadge( $data['version'], $data['updateurl'], $released )

В шаблоне (пытаются снова создать \IPS\DateTime::ts из timestamp при том что уже это сделали в коде )

 

{lang="new_version_tip_date" sprintf="$version,\IPS\DateTime::ts( $released )->localeDate()"}

В итоге получаем косяк в виде

 

Whoops\Exception\ErrorException: A non well formed numeric value encountered (8)
#0 [internal function]: Whoops\Run->handleError(8, 'A non well form...', 'Z:\\home\\localho...', 35, Array)
#1 Z:\home\localhost\www\forum43\system\DateTime\DateTime.php(35): DateTime->setTimestamp('11/20/2016')
#2 Z:\home\localhost\www\forum43\system\Theme\Theme.php(4319) : eval()'d code(28): IPS\_DateTime::ts('11/20/2016')
#3 Z:\home\localhost\www\forum43\system\Theme\Dev\Template.php(171): IPS\Theme\theme_core_admin_global_updatebadge('1.0.2', 'http://ipbskins...', '11/20/2016')
#4 Z:\home\localhost\www\forum43\system\Plugin\Plugin.php(470): IPS\Theme\Dev\_Template->__call('updatebadge', Array)
#5 Z:\home\localhost\www\forum43\system\Patterns\ActiveRecord.php(307): IPS\_Plugin->get__badge()

Share this post


Link to post

Подобный код и для тем (themes) используется.

В течение дня отправлю тикет.

  • Upvote 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...