Skip to content

Commit

Permalink
new loading gif
Browse files Browse the repository at this point in the history
  • Loading branch information
internetimagery committed Feb 18, 2015
1 parent bc98cc9 commit 9dea697
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion EmbedAnything.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function EA_Head_Js(&$parser, &$text){
$parser->mOutput->addHeadItem('
<script>function EA_ext_path(){ return "'.$wgCanonicalServer.$wgExtensionAssetsPath.'/EmbedAnything"; }</script>
<script src="'.$wgExtensionAssetsPath.'/EmbedAnything/includes/html2canvas.min.js" type="text/javascript"></script>
<script src="'.$wgExtensionAssetsPath.'/EmbedAnything/includes/screengrab.js" type="text/javascript"></script>'
<script src="'.$wgExtensionAssetsPath.'/EmbedAnything/includes/screengrab.min.js" type="text/javascript"></script>'
);
return true;
}
Expand Down
7 changes: 6 additions & 1 deletion includes/data.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function EA_CacheMaintenance(){
// If we have previously stored the value.
if($last_flush){
// Check if we have passed 10 times the expire time. Then flush the cache.
if((($last_flush + (EA_CACHE_TIME*10)) - time()) < 0){ $POOL->flush(); }
if((($last_flush + (EA_CACHE_TIME*10)) - time()) < 0){ EA_EmptyCache(); }
// If the value hasn't been stored yet.
} else {
$item->lock();
Expand All @@ -65,6 +65,11 @@ function EA_CacheMaintenance(){
// Clean out the Cache. Maintenance function.
function EA_EmptyCache(){
global $POOL;
$img_path = realpath(__DIR__.'/images');
// Clean out image cache
if(is_readable($img_path)){
// unlink($img_path);
}
$POOL->flush();
}

Expand Down
Binary file modified includes/loading.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added includes/loading2.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9dea697

Please sign in to comment.