Coder Social home page Coder Social logo

gallery's People

Contributors

mekras avatar ole-x avatar rozanov avatar

Watchers

 avatar  avatar  avatar

Forkers

rozanov

gallery's Issues

Неправильно выбираются фотографии методом load

файл 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&section=10&id=1
в поле "Дата и время добавления" пишем "вчера", сохраняем.
Получаем ошибку:
В модуле gallery произошла ошибка: DateTime::__construct(): Failed to parse time string (вчера) at position 0 (�): Unexpected character

Версия 3.00 не совместима с Eresus 3.01

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}

Опечатка в imageUp и ImageDown

Вместо
$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));

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.