forked from Cavemanon/cavepaintings
more version
This commit is contained in:
@ -176,7 +176,7 @@ class ReportImage extends Extension
|
||||
{
|
||||
global $database, $config;
|
||||
|
||||
if ($config->get_int("ext_report_image_version") < 1) {
|
||||
if ($this->get_version("ext_report_image_version") < 1) {
|
||||
$database->create_table("image_reports", "
|
||||
id SCORE_AIPK,
|
||||
image_id INTEGER NOT NULL,
|
||||
@ -185,7 +185,7 @@ class ReportImage extends Extension
|
||||
FOREIGN KEY (image_id) REFERENCES images(id) ON DELETE CASCADE,
|
||||
FOREIGN KEY (reporter_id) REFERENCES users(id) ON DELETE CASCADE
|
||||
");
|
||||
$config->set_int("ext_report_image_version", 1);
|
||||
$this->set_version("ext_report_image_version", 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user