View | Details | Raw Unified | Return to bug 8102
Collapse All | Expand All

(-)file_not_specified_in_diff (-7 / +3 lines)
Line     Link Here 
0
-- a/plugins/generic/customLocale/CustomLocaleHandler.inc.php
0
++ b/plugins/generic/customLocale/CustomLocaleHandler.inc.php
 Lines 26-34   class CustomLocaleHandler extends Handler { Link Here 
26
	function CustomLocaleHandler($parentPluginName) {
26
	function CustomLocaleHandler($parentPluginName) {
27
		parent::Handler();
27
		parent::Handler();
28
28
29
		$this->addCheck(new HandlerValidatorJournal($this));
30
		$this->addCheck(new HandlerValidatorRoles($this, true, null, null, array(ROLE_ID_SITE_ADMIN, ROLE_ID_JOURNAL_MANAGER)));
31
32
		$plugin =& PluginRegistry::getPlugin('generic', $parentPluginName);
29
		$plugin =& PluginRegistry::getPlugin('generic', $parentPluginName);
33
		$this->plugin =& $plugin;		
30
		$this->plugin =& $plugin;		
34
	}
31
	}
 Lines 206-212   class CustomLocaleHandler extends Handler { Link Here 
206
	}
203
	}
207
204
208
	function setupTemplate(&$plugin, $subclass = true) {
205
	function setupTemplate(&$plugin, $subclass = true) {
209
		parent::setupTemplate();
210
		$templateMgr =& TemplateManager::getManager();
206
		$templateMgr =& TemplateManager::getManager();
211
		$templateMgr->register_function('plugin_url', array($plugin, 'smartyPluginUrl'));
207
		$templateMgr->register_function('plugin_url', array($plugin, 'smartyPluginUrl'));
212
		$pageHierarchy = array(array(Request::url(null, 'user'), 'navigation.user'), array(Request::url(null, 'manager'), 'user.role.manager'));
208
		$pageHierarchy = array(array(Request::url(null, 'user'), 'navigation.user'), array(Request::url(null, 'manager'), 'user.role.manager'));
213
-- a/plugins/generic/customLocale/CustomLocalePlugin.inc.php
209
++ b/plugins/generic/customLocale/CustomLocalePlugin.inc.php
 Lines 56-62   class CustomLocalePlugin extends GenericPlugin { Link Here 
56
		import('lib.pkp.classes.file.FileManager');
56
		import('lib.pkp.classes.file.FileManager');
57
		$fileManager = new FileManager();
57
		$fileManager = new FileManager();
58
		if ($fileManager->fileExists($customLocalePath)) {
58
		if ($fileManager->fileExists($customLocalePath)) {
59
			AppLocale::registerLocaleFile($locale, $customLocalePath, true);
59
			AppLocale::registerLocaleFile($locale, $customLocalePath, false);
60
		}
60
		}
61
61
62
		return true;
62
		return true;

Return to bug 8102