XenForo_Application::resetDynamicClassCache();
public static function uninstall() {
$db = XenForo_Application::get('db');
$db->query("
ALTER TABLE `xf_notice` DROP `noticeClass`
");
$app = new XenForo_Application;
$app->resetDynamicClassCache();
$noticeM = XenForo_Model::create('XenForo_Model_Notice');
$noticeM->rebuildNoticeCache();
}
XenForo_Application::set('skipClassExtensionBlahBlahBlah', true);
if (XenForo_Application::isRegistered('skipClassExtensionBlahBlahBlah')) return parent::rebuildNoticeCache;
yeah... but @Rob is a php nooblet!P.S. "XenForo_Application::resetDynamicClassCache()" is a static method
Are you sure? And here's me trying to do a proper clean up after myself. I've learned this as a direct opposite from some of the worst mods I've ever had the misfortune to pick apart when they've not uninstalled properly-ium (cryptic-ium!).How important actually is it to rebuild the Notice cache in this case? As long as you haven't removed any data we would usually use to display Notices, it should be fine to leave it.
We use essential cookies to make this site work, and optional cookies to enhance your experience.