Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Мелкие правки #1

Closed
pafnuty opened this issue Jan 10, 2015 · 1 comment
Closed

Мелкие правки #1

pafnuty opened this issue Jan 10, 2015 · 1 comment

Comments

@pafnuty
Copy link
Member

pafnuty commented Jan 10, 2015

  • Делай проверку на входящие данные до подключения классов и прочих обработчиков.
  • Зачем загружать шаблон и формировать ссылки и т.п. если указан ID не существующей новости...
  • И где header content-type ?
  • Лучше так не писать: die($fs);
    Надежнее будет:
echo $fs;
die();

Хотя die там уж точно не нужен. И так ведь конец файла.

pafnuty added a commit that referenced this issue Jan 10, 2015
- Небольшой рефакторинг и оптимизация кода
#1
- Теперь модуль отдаёт правильные заголовки, это экономит ресурсы и
ускоряет загрузку контента
- Добавлена совметсимость с DLE 9.6-10.1
- Добавлена возможность стилизации выводимых ошибок (у каждой ошибки
свой css-класс)
- По умолчанию полная новость показывается в стандартном модкльном окне.
@pafnuty
Copy link
Member Author

pafnuty commented Jan 10, 2015

558d9fb

@pafnuty pafnuty closed this as completed Jan 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant