xf_phantom
Well-known member
It would be very useful , if you would create a phrase for the really really often used error message "This add-on requires XenForo 1.2.0 or higher.'" (used by many addons inside the install controller
Instead of XenForo 1.2.0, i would also suggest to replace XenForo with a variable, then we could use it for xenforo version errors AND for other messages like
PHP:
if (XenForo_Application::$versionId < 1020070)
{
// note: this can't be phrased
throw new XenForo_Exception('This add-on requires XenForo 1.2.0 or higher.', true);
}
Instead of XenForo 1.2.0, i would also suggest to replace XenForo with a variable, then we could use it for xenforo version errors AND for other messages like
.This add-on requires [bd] WidgetFramework 2.4.0 or higher.
Upvote
1