do not load scripts for all apps

pull/1/head
Bernhard Posselt 9 years ago committed by Victor Dubiniuk
parent 89fb78855e
commit e9d95b6acd

@ -35,7 +35,11 @@ OCP\App::addNavigationEntry(array(
);
//Script for registering file actions
$url = OC::$server->getRequest()->server['REQUEST_URI'];
if (preg_match('%index.php/apps/files(/.*)?%', $url)) {
OCP\Util::addScript('documents', 'viewer/viewer');
}
if (OCA\Documents\Config::getConverter() !== 'off'){
$docFilter = new OCA\Documents\Filter\Office(

Loading…
Cancel
Save