Skip to content

Instantly share code, notes, and snippets.

View arnebratt's full-sized avatar

Arne Bakkebø arnebratt

View GitHub Profile
rest.ini:
[Authentication]
RequireAuthentication=enabled
AuthenticationStyle=ezpRestFilterAuthStyle
AuthenticationStyleFilter[]
AuthenticationStyleFilter[nsc_2]=ezpRestSessionAuthStyle
FallbackAuthenticationStyle=ezpRestOauthAuthenticationStyle
restauthfilter.php:
<?php
@arnebratt
arnebratt / gist:571269541df60de1b683
Created April 20, 2015 11:25
eZ Publish kernel hack to use production images in a dev environment
--- kernel/classes/datatypes/ezimage/ezimagealiashandler.php 2014-07-17 11:18:00.000000000 +0200
+++ kernel/classes/datatypes/ezimage/ezimagealiashandler.php 2014-07-17 11:51:57.000000000 +0200
@@ -551,6 +551,10 @@
}
$this->setOriginalAttributeData( $originalData );
+ $ini = eZINI::instance( 'image.ini' );
+ $imagesRemoteUrl = $ini->variable( 'ImageConverterSettings', 'ImagesRemoteURL' );
+ $imagesRemoteUrl = rtrim( $imagesRemoteUrl, '/' ) . '/';
+