Permalink
Browse files

* fixed r3673, added log message in case of error when creating cache…

… directory

* removed debugger line!

git-svn-id: http://www.kaltura.org/kalorg/html5video/trunk/mwEmbed@3783 b58a29cf-3064-46da-94c6-1c29cc75c8e5
  • Loading branch information...
1 parent d8aed5e commit 0a2558bcf18b772e38f337e39bd6bd59b199ceea @ranyefet ranyefet committed Jan 15, 2012
Showing with 4 additions and 2 deletions.
  1. +0 −1 modules/DolStatistics/loader.js
  2. +4 −1 mwEmbedLoader.php
View
1 modules/DolStatistics/loader.js
@@ -15,7 +15,6 @@ mw.addResourcePaths({
$( mw ).bind( 'newEmbedPlayerEvent', function( event, embedPlayer ){
$( embedPlayer ).bind( 'KalturaSupport_CheckUiConf', function( event, $uiConf, callback ){
- debugger;
if( embedPlayer.isPluginEnabled( 'dolStatistics' ) ){
mw.load( "mw.DolStatistics", function(){
new mw.DolStatistics( embedPlayer, callback );
View
5 mwEmbedLoader.php
@@ -68,7 +68,10 @@
// Create cache directory if not exists
if( ! file_exists( $wgScriptCacheDirectory ) ) {
- mkdir( $wgScriptCacheDirectory );
+ $created = mkdir( $wgScriptCacheDirectory );
+ if( ! $created ) {
+ echo "if( console ){ console.log('Error in creating cache directory: ". $wgScriptCacheDirectory . "'); }";
+ }
}
$loaderCacheFile = $wgScriptCacheDirectory . '/loader_' . $wgHTTPProtocol . '.min.' . $wgMwEmbedVersion . '.js';

0 comments on commit 0a2558b

Please sign in to comment.