eresus / gallery Goto Github PK
View Code? Open in Web Editor NEWМодуль расширения «Галерея изображений» для Eresus CMS
License: GNU General Public License v3.0
Модуль расширения «Галерея изображений» для Eresus CMS
License: GNU General Public License v3.0
В 2.03 в URL не подставляется аргумент action=groups.
файл Album.php
protected function load()
...
$this->items = $table->find($this->sectionId, null, null, true);
Соответственно, ORM возвращает всегда одну фотографию, с идентификатором $this->sectionId, если она есть, а не список фотографий, принадлежащих разделу $this->sectionId, как ожидалось.
Ошибка воспроизводится в галереях, где отключены группы изображений, при просмотре одного изображения.
Открываем картинку для редактирования:
http://eresus-unstable.test.dvaslona.com/admin.php?mod=content§ion=10&id=1
в поле "Дата и время добавления" пишем "вчера", сохраняем.
Получаем ошибку:
В модуле gallery произошла ошибка: DateTime::__construct(): Failed to parse time string (вчера) at position 0 (�): Unexpected character
Перенесено из http://bugs.eresus.ru/view.php?id=912
В описании:
$images
Список (массив) изображений в альбоме....
фактически:
$data['items'] = $items;
Перенесено из http://bugs.eresus.ru/view.php?id=915
Если сделать изображение неактивным, то его не видно в списке изображений в АИ, соответственно нельзя активировать.
Argument 1 passed to Gallery_ClientListView::getMaxCount() must be an instance of Plugin, instance of Gallery given, called in /usr/home/www/eresus/unstable/ext/gallery/classes/ClientListView.php on line 59 and defined
Backtrace:
#0 /usr/home/www/eresus/unstable/ext/gallery/classes/ClientListView.php(132): Eresus_Kernel::errorHandler(4096, 'Argument 1 pass...', '/usr/home/www/e...', 132, Array)
#1 /usr/home/www/eresus/unstable/ext/gallery/classes/ClientListView.php(59): Gallery_ClientListView->getMaxCount(Object(Gallery))
#2 /usr/home/www/eresus/unstable/ext/gallery.php(1029): Gallery_ClientListView->render()
#3 /usr/home/www/eresus/unstable/ext/gallery.php(479): Gallery->clientRenderList()
#4 /usr/home/www/eresus/unstable/core/Plugin/Registry.php(342): Gallery->clientRenderContent()
#5 /usr/home/www/eresus/unstable/core/client.php(389): Eresus_Plugin_Registry->clientRenderContent(Object(Eresus_CMS_Request))
#6 /usr/home/www/eresus/unstable/core/Client/FrontController.php(48): TClientUI->render(Object(Eresus_CMS_Request))
#7 /usr/home/www/eresus/unstable/core/CMS.php(339): Eresus_Client_FrontController->dispatch()
#8 /usr/home/www/eresus/unstable/core/CMS.php(121): Eresus_CMS->runWeb()
#9 /usr/home/www/eresus/unstable/core/Kernel.php(510): Eresus_CMS->main()
#10 /usr/home/www/eresus/unstable/index.php(83): Eresus_Kernel::exec('Eresus_CMS')
#11 {main}
Вместо
$q->where($e->lAnd($e->eq('section', $q->bindValue($image->id, null, PDO::PARAM_INT)), $expr));
Нужно
$q->where($e->lAnd($e->eq('section', $q->bindValue($image->section, null, PDO::PARAM_INT)), $expr));
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.