summaryrefslogtreecommitdiffstats
path: root/globals.pl
diff options
context:
space:
mode:
authortravis%sedsystems.ca <>2005-01-28 05:08:33 +0100
committertravis%sedsystems.ca <>2005-01-28 05:08:33 +0100
commitf59ece67513bb56107a6a7d16cc4b1df9ab9aa9c (patch)
tree43175b0515d32618a7b795fb37fa440c34641abd /globals.pl
parentb61cb7207dea39ca70c2ffe3fbe3805506def34f (diff)
downloadbugzilla-f59ece67513bb56107a6a7d16cc4b1df9ab9aa9c.tar.gz
bugzilla-f59ece67513bb56107a6a7d16cc4b1df9ab9aa9c.tar.xz
Bug 278791 : Move ModTime() to Bugzilla::Util
Patch by Max K-A <mkanat@kerio.com> r=vladd a=justdave
Diffstat (limited to 'globals.pl')
-rw-r--r--globals.pl14
1 files changed, 1 insertions, 13 deletions
diff --git a/globals.pl b/globals.pl
index 32dc64a6d..0c1ba852b 100644
--- a/globals.pl
+++ b/globals.pl
@@ -352,22 +352,10 @@ sub GetKeywordIdFromName {
}
-
-
-# Returns the modification time of a file.
-
-sub ModTime {
- my ($filename) = (@_);
- my ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,
- $atime,$mtime,$ctime,$blksize,$blocks)
- = stat($filename);
- return $mtime;
-}
-
$::VersionTableLoaded = 0;
sub GetVersionTable {
return if $::VersionTableLoaded;
- my $mtime = ModTime("$datadir/versioncache");
+ my $mtime = file_mod_time("$datadir/versioncache");
if (!defined $mtime || $mtime eq "" || !-r "$datadir/versioncache") {
$mtime = 0;
}