summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--uservars.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/uservars.h b/uservars.h
index f098750..9366af0 100644
--- a/uservars.h
+++ b/uservars.h
@@ -538,7 +538,11 @@ class cVideodirVar : public cInternalVar {
cVideodirVar() : cInternalVar("videodir") {}
string Evaluate(const cEvent*, bool escapeStrings = false)
{
+#if APIVERSNUM > 20101
+ return cVideoDirectory::Name();
+#else
return VideoDirectory;
+#endif
}
};