+
+ get('admin_menus') != '0') : ?>
+
+
+
+
+
+
+
+ get('admin_menus') != '0') : ?>
+
+
+
+
+ menumodules = JModuleHelper::getModules('menu');
+ foreach ($this->menumodules as $menumodule) {
+ $output = JModuleHelper::renderModule($menumodule, array('style' => 'none'));
+ $params = new JRegistry;
+ $params->loadString($menumodule->params);
+ echo $output;
+ }
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ error->getCode(); ?> error->getMessage();?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/administrator/templates/isis/index.php b/administrator/templates/isis/index.php
index c1cb646b968d0..8335c97ee88eb 100644
--- a/administrator/templates/isis/index.php
+++ b/administrator/templates/isis/index.php
@@ -12,6 +12,8 @@
$app = JFactory::getApplication();
$doc = JFactory::getDocument();
$lang = JFactory::getLanguage();
+$this->language = $doc->language;
+$this->direction = $doc->direction;
$input = $app->input;
$user = JFactory::getUser();
@@ -68,7 +70,7 @@
}
?>
-
+
diff --git a/installation/CHANGELOG b/installation/CHANGELOG
index 9a9a58018f26d..2b6d5d6405024 100644
--- a/installation/CHANGELOG
+++ b/installation/CHANGELOG
@@ -26,6 +26,9 @@ $ -> Language fix or change
- -> Removed
! -> Note
+13-Sept-2012 Jean-Marie Simonet
+ # [#29144] error.php for Isis and Protostar Templates. Thanks Kyle
+
11-Sept-2012 Jean-Marie Simonet
# Installation languages alpha ordering broken on hosts. Adding method. Thanks Dennis
diff --git a/templates/protostar/component.php b/templates/protostar/component.php
index a2abba66644f2..73b5c1d6b41df 100644
--- a/templates/protostar/component.php
+++ b/templates/protostar/component.php
@@ -8,9 +8,14 @@
*/
defined('_JEXEC') or die;
+
+$app = JFactory::getApplication();
+$doc = JFactory::getDocument();
+$this->language = $doc->language;
+$this->direction = $doc->direction;
?>
-
+
diff --git a/templates/protostar/error.php b/templates/protostar/error.php
new file mode 100644
index 0000000000000..5b0990e17f5e9
--- /dev/null
+++ b/templates/protostar/error.php
@@ -0,0 +1,201 @@
+getTemplate(true)->params;
+
+$app = JFactory::getApplication();
+$doc = JFactory::getDocument();
+$this->language = $doc->language;
+$this->direction = $doc->direction;
+
+// Detecting Active Variables
+$option = $app->input->getCmd('option', '');
+$view = $app->input->getCmd('view', '');
+$layout = $app->input->getCmd('layout', '');
+$task = $app->input->getCmd('task', '');
+$itemid = $app->input->getCmd('Itemid', '');
+$sitename = $app->getCfg('sitename');
+
+if($task == "edit" || $layout == "form" )
+{
+ $fullWidth = 1;
+}
+else
+{
+ $fullWidth = 0;
+}
+
+// Add JavaScript Frameworks
+JHtml::_('bootstrap.framework');
+
+// Add current user information
+$user = JFactory::getUser();
+
+
+// Logo file
+if ($params->get('logoFile'))
+{
+ $logo = JURI::root() . $params->get('logoFile');
+}
+else
+{
+ $logo = $this->baseurl . "/templates/" . $this->template . "/images/logo.png";
+}
+?>
+
+
+
+
title; ?> error->getMessage();?>
+
+
+
+
+ direction == 'rtl')
+ {
+ ?>
+
+ get('googleFont'))
+ {
+ ?>
+
' rel='stylesheet' type='text/css'>
+
+
+ get('templateColor'))
+ {
+ ?>
+
+
+
+
+ get('fluidContainer')) { echo "fluid"; } ?>">
+
+
+
+
">
+
+
+
+ navmodules = JModuleHelper::getModules('position-1');
+ foreach ($this->navmodules as $navmodule) {
+ $output = JModuleHelper::renderModule($navmodule, array('style' => 'none'));
+ $params = new JRegistry;
+ $params->loadString($navmodule->params);
+ echo $output;
+ }
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ error->getCode(); ?> error->getMessage();?>
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/templates/protostar/index.php b/templates/protostar/index.php
index 2620a659de293..fece22e40b872 100644
--- a/templates/protostar/index.php
+++ b/templates/protostar/index.php
@@ -11,6 +11,8 @@
$app = JFactory::getApplication();
$doc = JFactory::getDocument();
+$this->language = $doc->language;
+$this->direction = $doc->direction;
// Detecting Active Variables
$option = $app->input->getCmd('option', '');
@@ -73,7 +75,7 @@
}
?>
-
+