Updates for new PHP stuff

This commit is contained in:
Yukimi Kazari 2019-12-18 04:44:09 +00:00
parent 727c83ba90
commit ce9570d6fb
5 changed files with 527 additions and 356 deletions

View File

@ -260,7 +260,7 @@ trait PostTagMethods
$pool = Pool::create(array('name' => $name, 'is_public' => false, 'user_id' => $this->updater_user_id));
if (!$pool || !$pool->can_change(current_user(), null))
continue;
continue 2;
$pool->add_post($this->id, $options);

View File

@ -1,5 +1,5 @@
{
"name": "myimouto/myimouto",
"name": "sequenzia/sequenzia",
"description": "Image board for PHP 5.4+ and MySQL",
"license": "MIT",
"keywords": [
@ -12,6 +12,8 @@
"railsphp/railsphp": "1.0.*",
"railsphp/willpaginate": "1.0.*",
"railsphp/actsasversioned": "1.0.*",
"michelf/php-markdown": "1.3.*"
}
"michelf/php-markdown": "1.9.*"
},
"minimum-stability": "stable",
"prefer-stable": true
}

867
composer.lock generated Executable file → Normal file

File diff suppressed because it is too large Load Diff

View File

@ -14,7 +14,7 @@ define('RAILS_ROOT', dirname(__DIR__));
/**
* Path to Rails.
*/
$railsPath = __DIR__ . '/../vendor/railsphp/railsphp/lib/Rails';
$railsPath = dirname(__DIR__, 1) . '/vendor/railsphp/railsphp/lib/Rails';
/**
* Load and initialize Rails.
@ -25,5 +25,5 @@ Rails::initialize();
/**
* Load and initialize application.
*/
require __DIR__ . '/application.php';
require dirname(__DIR__) . '/config/application.php';
MyImouto\Application::initialize();

View File

@ -1,3 +1,3 @@
<?php
require __DIR__ . '/../config/boot.php';
require dirname(__DIR__, 1) . '/config/boot.php';
MyImouto\Application::dispatchRequest();