private static function symlinkPluginFromRootToElgg($plugin) { $from = Directory\Local::root()->getPath("mod/{$plugin}"); $to = Elgg\Application::elggDir()->getPath("mod/{$plugin}"); return !file_exists($from) && symlink($to, $from); }