siv1987 Posted March 21, 2019 Share Posted March 21, 2019 Кто нибудь сообщите о багрепорте на странице плагинов в режиме разработчиков при наличие новых версий плагинов. В коде 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() Link to comment Share on other sites More sharing options...
newbie Posted March 21, 2019 Share Posted March 21, 2019 Подобный код и для тем (themes) используется.В течение дня отправлю тикет. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now