Index: .
===================================================================
--- .	(revision 21362)
+++ .	(working copy)
@@ -87,6 +87,14 @@
         if ( !$isQuiet )
             $cli->notice( "Using siteaccess $siteaccess for cronjob" );
     }
+    elseif ( isExtensionSiteaccess( $optionData ) )
+    {
+        $siteaccess = $optionData;
+        if ( !$isQuiet )
+            $cli->notice( "Using extension siteaccess $siteaccess for cronjob" );
+
+        eZExtension::prependExtensionSiteAccesses( $siteaccess );
+    }
     else
     {
         if ( !$isQuiet )
@@ -94,6 +102,27 @@
     }
 }
 
+/*
+    look in the ActiveExtensions for $siteaccessName
+    You only need to look in ActiveExtensions and not ActiveAccessExtensions
+    return true if siteaccessName exists in an extension
+           false if not
+*/
+function isExtensionSiteaccess( $siteaccessName )
+{
+    $ini = eZINI::instance();
+    $extensionDirectory = $ini->variable( 'ExtensionSettings', 'ExtensionDirectory' );
+    $activeExtensions = $ini->variable( 'ExtensionSettings', 'ActiveExtensions' );
+
+    foreach ( $activeExtensions as $extensionName )
+    {
+        $possibleExtensionPath = $extensionDirectory .'/'. $extensionName .'/settings/siteaccess/'. $siteaccessName;
+        if( file_exists( $possibleExtensionPath ) )
+            return true;
+    }
+    return false;
+}
+
 $siteaccess = false;
 $debugOutput = false;
 $allowedDebugLevels = false;
