Merge remote-tracking branch 'origin/develop'
This commit is contained in:
+7
-7
@@ -100,13 +100,13 @@ chown -R docker:root /var/www/html/storage/framework/cache
|
||||
# Fix php settings
|
||||
if [ -v "PHP_UPLOAD_LIMIT" ]
|
||||
then
|
||||
PHP_INI_FILE=$(find /etc/php/*/apache2/php.ini)
|
||||
if [ -e $PHP_INI_FILE ]
|
||||
then
|
||||
echo "Changing upload limit to ${PHP_UPLOAD_LIMIT}M in ${PHP_INI_FILE}"
|
||||
sed -i "s/^upload_max_filesize.*/upload_max_filesize = ${PHP_UPLOAD_LIMIT}M/" $PHP_INI_FILE
|
||||
sed -i "s/^post_max_size.*/post_max_size = ${PHP_UPLOAD_LIMIT}M/" $PHP_INI_FILE
|
||||
fi
|
||||
find /etc/php -type f -name php.ini | while IFS= read -r ini; do
|
||||
echo "Changing upload limit to ${PHP_UPLOAD_LIMIT}M in $ini"
|
||||
sed -i \
|
||||
-e "s/^;\? *upload_max_filesize *=.*/upload_max_filesize = ${PHP_UPLOAD_LIMIT}M/" \
|
||||
-e "s/^;\? *post_max_size *=.*/post_max_size = ${PHP_UPLOAD_LIMIT}M/" \
|
||||
"$ini"
|
||||
done
|
||||
fi
|
||||
|
||||
# If the Oauth DB files are not present copy the vendor files over to the db migrations
|
||||
|
||||
@@ -84,9 +84,13 @@ chown -R apache:root /var/www/html/storage/framework/cache
|
||||
# Fix php settings
|
||||
if [ ! -z "${PHP_UPLOAD_LIMIT}" ]
|
||||
then
|
||||
echo "Changing upload limit to ${PHP_UPLOAD_LIMIT}"
|
||||
sed -i "s/^upload_max_filesize.*/upload_max_filesize = ${PHP_UPLOAD_LIMIT}M/" /etc/php*/php.ini
|
||||
sed -i "s/^post_max_size.*/post_max_size = ${PHP_UPLOAD_LIMIT}M/" /etc/php*/php.ini
|
||||
find /etc -type f -name php.ini | while IFS= read -r ini; do
|
||||
echo "Changing upload limit to ${PHP_UPLOAD_LIMIT}M in $ini"
|
||||
sed -i \
|
||||
-e "s/^;\? *upload_max_filesize *=.*/upload_max_filesize = ${PHP_UPLOAD_LIMIT}M/" \
|
||||
-e "s/^;\? *post_max_size *=.*/post_max_size = ${PHP_UPLOAD_LIMIT}M/" \
|
||||
"$ini"
|
||||
done
|
||||
fi
|
||||
|
||||
# If the Oauth DB files are not present copy the vendor files over to the db migrations
|
||||
|
||||
@@ -386,15 +386,21 @@
|
||||
if ((row.available_actions) && (row.available_actions.delete === true)) {
|
||||
|
||||
// use the asset tag if no name is provided
|
||||
var name_for_box = row.name
|
||||
if (row.name=='') {
|
||||
|
||||
if (row.name) {
|
||||
var name_for_box = row.name
|
||||
} else if (row.title) {
|
||||
var name_for_box = row.title
|
||||
} else if (row.asset_tag) {
|
||||
var name_for_box = row.asset_tag
|
||||
}
|
||||
|
||||
|
||||
|
||||
actions += '<a href="{{ config('app.url') }}/' + dest + '/' + row.id + '" '
|
||||
+ ' class="actions btn btn-danger btn-sm delete-asset" data-tooltip="true" '
|
||||
+ ' data-toggle="modal" '
|
||||
+ ' data-content="{{ trans('general.sure_to_delete') }} ' + name_for_box + '?" '
|
||||
+ ' data-content="{{ trans('general.sure_to_delete') }}: ' + name_for_box + '?" '
|
||||
+ ' data-title="{{ trans('general.delete') }}" onClick="return false;">'
|
||||
+ '<x-icon type="delete" /><span class="sr-only">{{ trans('general.delete') }}</span></a> ';
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user