stick a blank index.php in data/ just in case somebody left directory-indexing on
This commit is contained in:
parent
ea0e83abc9
commit
8b1b4d257e
2 changed files with 5 additions and 1 deletions
|
@ -20,6 +20,10 @@ class Upgrade extends Extension
|
|||
{
|
||||
global $config, $database;
|
||||
|
||||
if (!file_exists("data/index.php")) {
|
||||
file_put_contents("data/index.php", "<?php\n// Silence is golden...\n");
|
||||
}
|
||||
|
||||
if ($config->get_int("db_version") < 1) {
|
||||
$this->set_version("db_version", 2);
|
||||
}
|
||||
|
|
|
@ -84,7 +84,7 @@ class ViewImage extends Extension
|
|||
public function onDisplayingImage(DisplayingImageEvent $event)
|
||||
{
|
||||
global $page, $user;
|
||||
$image = $event->get_image();
|
||||
$image = $event->get_image();
|
||||
|
||||
$this->theme->display_meta_headers($image);
|
||||
|
||||
|
|
Reference in a new issue