@lolautruche: done (with a few changes :p).


On Sun, Apr 28, 2013 at 11:52 AM, André R. <notifications@github.com> wrote:

> In update/common/scripts/5.1/fiximagesoutsidevardir.php:
>
> > +$varDir = eZINI::instance( 'site.ini' )->variable( 'FileSettings', 'VarDir' );
> > +if ( substr( $varDir, 0, -1 ) !== DIRECTORY_SEPARATOR )
> > +{
> > +    $varDir .= DIRECTORY_SEPARATOR;
> > +}
> > +$cli->output( "Searching database " . $db->DB . " for images that don't start with $varDir" );
> > +if ( $optDryRun )
> > +{
> > +    $cli->output( "*DRY RUN MODE*" );
> > +}
> > +$cli->output();
> > +$rows = $db->arrayQuery( "SELECT * FROM ezimagefile WHERE filepath NOT LIKE '{$varDir}%'" );
> > +
> > +if ( !count( $rows ) )
> > +{
> > +    $cli->output( "No files not starting with '{$varDir}' was found in the database" );
>
> No files found outside of '{$varDir}' in the database
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/ezsystems/ezpublish-legacy/pull/621/files#r3991070>
> .
>



-- 
--
Bertrand Dunogier
Lead Engineer Extensions
eZ Systems AS | skype:bertrand-dunogier | http://www.ez.no/
---------------------------------------------
Freedom to Create Your Experience - Join us at this year's Conference
http://cologne2012.ez.no

eZ Publish Enterprise 4.7 Available
http://ez.no/About-eZ/Events-News/News/eZ-Publish-Enterprise-4.7