Проект ещё жив!
This commit is contained in:
@@ -88,6 +88,8 @@ function Post_Create (
|
||||
bool $comms_enabled = false,
|
||||
bool $edit_lock = false
|
||||
): ReturnT {
|
||||
global $db;
|
||||
|
||||
$result = null;
|
||||
|
||||
// Author ID should exist
|
||||
@@ -113,7 +115,7 @@ function Post_Create (
|
||||
* Create single publication
|
||||
*/
|
||||
function Post_Create_Method (array $req, array $files): ReturnT {
|
||||
global $db, $Config, $LOGGED_IN, $THIS_USER;
|
||||
global $Config, $LOGGED_IN, $THIS_USER;
|
||||
|
||||
$author_id = $THIS_USER;
|
||||
$tags = null;
|
||||
@@ -168,7 +170,7 @@ function Post_Create_Method (array $req, array $files): ReturnT {
|
||||
|
||||
|
||||
|
||||
if (ThisFileIsRequested(__FILE__)) {
|
||||
if (Utils_ThisFileIsRequested(__FILE__)) {
|
||||
require_once("../_json.php");
|
||||
|
||||
// TODO: cleanup if bad result
|
||||
|
Reference in New Issue
Block a user