Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project
Project
Details
Activity
Releases
Dependency List
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
185
Issues
185
List
Boards
Labels
Service Desk
Milestones
Merge Requests
31
Merge Requests
31
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
List
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Commits
3785b65b
Commit
3785b65b
authored
3 minutes ago
by
Mark Harding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Merge branch 'chore/661-misc-fixes' into 'master'"
This reverts commit
9b1091df
, reversing changes made to
727ab59b
.
parent
c1be0c6c
master
No related merge requests found
Pipeline
#73704898
running with stages
Changes
12
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
15 additions
and
26 deletions
+15
-26
Factory.php
Api/Factory.php
+2
-4
ElasticRepository.php
Core/Boost/Network/ElasticRepository.php
+1
-1
Client.php
Core/Data/PubSub/Redis/Client.php
+1
-1
Mailer.php
Core/Email/Mailer.php
+1
-1
Entities.php
Core/Entities.php
+2
-2
Events.php
Core/Messenger/Events.php
+0
-1
Notification.php
Core/Notification/Notification.php
+1
-1
Session.php
Core/Session.php
+0
-1
bootstrap.php
Spec/bootstrap.php
+0
-1
ElggEntity.php
classes/ElggEntity.php
+4
-2
elgglib.php
lib/elgglib.php
+2
-2
settings.example.php
settings.example.php
+1
-9
No files found.
Api/Factory.php
View file @
3785b65b
...
...
@@ -149,7 +149,7 @@ class Factory
'status'
=>
'success'
,
//should success be assumed?
),
$data
);
@
ob_end_clean
();
ob_end_clean
();
header
(
'Content-type: application/json'
);
header
(
"Access-Control-Allow-Origin: *"
);
...
...
@@ -173,9 +173,7 @@ class Factory
}
$entities
[
$k
]
=
$entity
->
export
();
if
(
isset
(
$entities
[
$k
][
'guid'
]))
{
$entities
[
$k
][
'guid'
]
=
(
string
)
$entities
[
$k
][
'guid'
];
//javascript doesn't like long numbers..
}
$entities
[
$k
][
'guid'
]
=
(
string
)
$entities
[
$k
][
'guid'
];
//javascript doesn't like long numbers..
if
(
isset
(
$entities
[
$k
][
'ownerObj'
][
'guid'
]))
{
$entities
[
$k
][
'ownerObj'
][
'guid'
]
=
(
string
)
$entity
->
ownerObj
[
'guid'
];
}
...
...
This diff is collapsed.
Click to expand it.
Core/Boost/Network/ElasticRepository.php
View file @
3785b65b
...
...
@@ -64,7 +64,7 @@ class ElasticRepository
];
}
if
(
isset
(
$opts
[
'entity_guid'
])
)
{
if
(
$opts
[
'entity_guid'
]
)
{
$must
[]
=
[
'term'
=>
[
'entity_guid'
=>
$opts
[
'entity_guid'
]
...
...
This diff is collapsed.
Click to expand it.
Core/Data/PubSub/Redis/Client.php
View file @
3785b65b
...
...
@@ -18,7 +18,7 @@ class Client
$config
=
Config
::
_
()
->
get
(
'redis'
);
try
{
$this
->
redis
->
connect
(
@
$config
[
'pubsub'
]
?:
$config
[
'master'
]
?:
'127.0.0.1'
);
$this
->
redis
->
connect
(
$config
[
'pubsub'
]
?:
$config
[
'master'
]
?:
'127.0.0.1'
);
}
catch
(
\Exception
$e
)
{
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Core/Email/Mailer.php
View file @
3785b65b
...
...
@@ -33,7 +33,7 @@ class Mailer
$this
->
mailer
->
isSMTP
();
//$this->mailer->SMTPKeepAlive = true;
$this
->
mailer
->
Host
=
Core\Config
::
_
()
->
email
[
'smtp'
][
'host'
];
$this
->
mailer
->
Auth
Type
=
@
Core\Config
::
_
()
->
email
[
'smtp'
][
'auth'
];
$this
->
mailer
->
Auth
=
Core\Config
::
_
()
->
email
[
'smtp'
][
'auth'
];
$this
->
mailer
->
SMTPAuth
=
true
;
$this
->
mailer
->
Username
=
Core\Config
::
_
()
->
email
[
'smtp'
][
'username'
];
$this
->
mailer
->
Password
=
Core\Config
::
_
()
->
email
[
'smtp'
][
'password'
];
...
...
This diff is collapsed.
Click to expand it.
Core/Entities.php
View file @
3785b65b
...
...
@@ -69,8 +69,8 @@ class Entities extends base
}
}
if
(
!
property_exists
(
$row
,
'type'
)
||
!
$row
->
type
)
{
$row
->
type
=
'Unknown'
;
if
(
!
property_exists
(
$row
,
'type'
)
||
!
$row
->
type
)
{
//return null
;
}
$default
=
"Minds
\\
Entities
\\
"
.
ucfirst
(
$row
->
type
);
if
(
class_exists
(
$default
)
&&
is_subclass_of
(
$default
,
'ElggEntity'
))
{
...
...
This diff is collapsed.
Click to expand it.
Core/Messenger/Events.php
View file @
3785b65b
...
...
@@ -38,7 +38,6 @@ class Events
*/
Core\Events\Dispatcher
::
register
(
'export:extender'
,
'all'
,
function
(
$event
)
{
$params
=
$event
->
getParameters
();
$export
=
null
;
if
(
$params
[
'entity'
]
instanceof
User
)
{
$keystore
=
(
new
Messenger\Keystore
())
...
...
This diff is collapsed.
Click to expand it.
Core/Notification/Notification.php
View file @
3785b65b
...
...
@@ -18,7 +18,7 @@ use Minds\Traits\MagicAttributes;
* @method string getEntityGuid()
* @method Notification setEntityGuid(string $value)
* @method string getEntityUrn()
* @method Notification
s
etEntityUrn(string $value)
* @method Notification
g
etEntityUrn(string $value)
* @method string getType()
* @method Notification setType(string $value)
* @method array getData()
...
...
This diff is collapsed.
Click to expand it.
Core/Session.php
View file @
3785b65b
...
...
@@ -12,7 +12,6 @@ use Minds\Entities\User;
*/
class
Session
extends
base
{
/** @var User $user */
private
static
$user
;
private
$session_name
=
'minds'
;
...
...
This diff is collapsed.
Click to expand it.
Spec/bootstrap.php
View file @
3785b65b
...
...
@@ -8,7 +8,6 @@ date_default_timezone_set('UTC');
$minds
=
new
Minds\Core\Minds
();
$minds
->
loadLegacy
();
//$minds->loadConfigs();
$CONFIG
=
Minds\Core\Di\Di
::
_
()
->
get
(
'Config'
);
$CONFIG
->
default_access
=
2
;
...
...
This diff is collapsed.
Click to expand it.
classes/ElggEntity.php
View file @
3785b65b
...
...
@@ -199,7 +199,7 @@ abstract class ElggEntity extends ElggData implements
* @param string $name Name
* @param mixed $value Value
*
* @return
self
* @return
bool
*/
public
function
set
(
$name
,
$value
)
{
...
...
@@ -211,7 +211,9 @@ abstract class ElggEntity extends ElggData implements
$this
->
attributes
[
$name
]
=
$value
;
break
;
}
if
(
$this
->
guid
){
// $this->save();
}
return
$this
;
}
...
...
This diff is collapsed.
Click to expand it.
lib/elgglib.php
View file @
3785b65b
...
...
@@ -933,10 +933,10 @@ function fatalErrorShutdownHandler(){
if
(
$last_error
[
'type'
]
==
E_ERROR
&&
php_sapi_name
()
!=
"cli"
){
error_log
(
'Fatal error: '
.
nl2br
(
htmlentities
(
print_r
(
$last_error
,
true
),
ENT_QUOTES
,
'UTF-8'
)));
// Wipe any existing output buffer
@
ob_end_clean
();
ob_end_clean
();
_elgg_php_error_handler
(
$last_error
[
'type'
],
$last_error
[
'message'
],
$last_error
[
'file'
],
$last_error
[
'line'
]);
// Wipe any existing output buffer
@
ob_end_clean
();
ob_end_clean
();
header
(
'Fatal error'
,
true
,
500
);
echo
file_get_contents
(
dirname
(
dirname
(
dirname
(
__FILE__
)))
.
'/errors/500.html'
);
...
...
This diff is collapsed.
Click to expand it.
settings.example.php
View file @
3785b65b
...
...
@@ -250,9 +250,6 @@ $CONFIG->set('google', [
'key_path'
=>
__DIR__
.
'/.auth/analytics.json'
,
],
'ads'
=>
''
,
// get it from https://ga-dev-tools.appspot.com/account-explorer/
],
'recaptcha'
=>
[
'site_key'
=>
'12345'
]
]);
...
...
@@ -359,7 +356,6 @@ $CONFIG->set('blockchain', [
'contract_address'
=>
'0x4b637bba81d24657d4c6acc173275f3e11a8d5d7'
,
'wallet_address'
=>
'0x4CDc1C1fd1A3F4DD63231afF8c16501BcC11Df95'
,
'wallet_pkey'
=>
''
,
'plus_address'
=>
'12345'
],
],
...
...
@@ -371,11 +367,7 @@ $CONFIG->set('blockchain', [
'cap'
=>
1000
],
'mw3'
=>
'/usr/bin/env node '
.
__MINDS_ROOT__
.
'/../mw3/index.js'
,
'token_distribution_event_address'
=>
'12345'
,
'wallet_address'
=>
'12345'
,
'network_address'
=>
'12345'
'mw3'
=>
'/usr/bin/env node '
.
__MINDS_ROOT__
.
'/../mw3/index.js'
]);
$CONFIG
->
set
(
'blockchain_override'
,
[
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment