Skip to content

Commit

Permalink
move var -> share
Browse files Browse the repository at this point in the history
  • Loading branch information
haarg committed Jul 7, 2010
1 parent 8943853 commit e4792fe
Show file tree
Hide file tree
Showing 11 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/WebGUI/Image/Font.pm
Expand Up @@ -73,7 +73,7 @@ sub getFile {
if ($self->getStorageId) {
return WebGUI::Storage->get($self->session, $self->getStorageId)->getPath($self->getFilename);
} else {
return WebGUI::Paths->var . '/default.ttf';
return WebGUI::Paths->share . '/default.ttf';
}
}

Expand Down
8 changes: 4 additions & 4 deletions lib/WebGUI/Paths.pm
Expand Up @@ -85,7 +85,7 @@ Returns the base directory of the default site uploads content.
Returns the file path of the default site create.sql script.
=head2 var
=head2 share
Returns the base directory for WebGUI auxiliary files.
Expand All @@ -102,12 +102,12 @@ BEGIN {
spectreConfig => catfile($root, 'etc', 'spectre.conf'),
preloadCustom => catfile($root, 'etc', 'preload.custom'),
preloadExclusions => catfile($root, 'etc', 'preload.exclude'),
upgrades => catdir($root, 'var', 'upgrades'),
upgrades => catdir($root, 'share', 'upgrades'),
extras => catdir($root, 'www', 'extras'),
defaultUploads => catdir($root, 'www', 'uploads'),
defaultCreateSQL => catdir($root, 'docs', 'create.sql'),
var => catdir($root, 'var'),
defaultPSGI => catdir($root, 'var', 'site.psgi'),
share => catdir($root, 'share'),
defaultPSGI => catdir($root, 'share', 'site.psgi'),
);
my $meta = Class::MOP::Class->initialize(__PACKAGE__);
for my $sub (keys %paths) {
Expand Down
2 changes: 1 addition & 1 deletion lib/WebGUI/Storage.pm
Expand Up @@ -259,7 +259,7 @@ sub addFileFromCaptcha {
$self->session->errorHandler->warn("Error adding noise: $error");
}
# AddNoise generates a different average color depending on library. This is ugly, but the best I can see for now
$error = $image->Annotate(font=>WebGUI::Paths->var.'/default.ttf', pointsize=>40, skewY=>0, skewX=>0, gravity=>'center', fill=>'#ffffff', antialias=>'true', text=>$challenge);
$error = $image->Annotate(font=>WebGUI::Paths->share.'/default.ttf', pointsize=>40, skewY=>0, skewX=>0, gravity=>'center', fill=>'#ffffff', antialias=>'true', text=>$challenge);
if($error) {
$self->session->errorHandler->warn("Error Annotating image: $error");
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit e4792fe

Please sign in to comment.