mirror of
https://github.com/claradex/nativegallery.git
synced 2025-02-13 09:43:14 +03:00
fix show page
This commit is contained in:
parent
33ce890c07
commit
3b3efb4c84
2 changed files with 3 additions and 6 deletions
|
@ -1,8 +1,5 @@
|
|||
-- Migration script to update database schema
|
||||
|
||||
-- Drop tables that are no longer needed
|
||||
-- (No tables to drop as all tables in 111.sql exist in 222.sql)
|
||||
|
||||
-- Add new tables from 222.sql that don't exist in 111.sql
|
||||
CREATE TABLE IF NOT EXISTS `contests` (
|
||||
`id` int(10) NOT NULL AUTO_INCREMENT,
|
||||
|
@ -29,8 +26,8 @@ CREATE TABLE IF NOT EXISTS `servicekeys` (
|
|||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
-- Modify existing tables to add new columns
|
||||
ALTER TABLE `photos`
|
||||
ADD COLUMN IF NOT EXISTS `pinnedcomment_id` int(10) NOT NULL DEFAULT 0 AFTER `entitydata_id`;
|
||||
-- Using proper ALTER TABLE syntax for MySQL
|
||||
ALTER TABLE `photos` ADD COLUMN `pinnedcomment_id` int(10) NOT NULL DEFAULT 0 AFTER `entitydata_id`;
|
||||
|
||||
-- Set AUTO_INCREMENT values for the new tables
|
||||
ALTER TABLE `contests` AUTO_INCREMENT = 1;
|
||||
|
|
|
@ -43,7 +43,7 @@ $user = new User(Auth::userid());
|
|||
var pub_pid = 0;
|
||||
</script>
|
||||
<td class="main">
|
||||
<?php if (NGALLERY['root']['registration']['emailverify'] != true || $user->i('status') === 3) {
|
||||
<?php if (NGALLERY['root']['registration']['emailverify'] != false || $user->i('status') === 3) {
|
||||
die('Чтобы публиковать Фотографии и Видео, нужно подтвердить почту.');
|
||||
} ?>
|
||||
<h1>Предложить медиа на публикацию</h1>
|
||||
|
|
Loading…
Reference in a new issue