summaryrefslogtreecommitdiff
path: root/modules/gallery/libraries
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-05-27 16:15:00 -0700
committerBharat Mediratta <bharat@menalto.com>2009-05-27 16:17:29 -0700
commit88a3d43ba9b9377ba6bbe21a4547220ae3a37276 (patch)
treebcdfaa4188a7e9a8e698c895f84f0ca899005391 /modules/gallery/libraries
parent12fe58d997d2066dc362fd393a18b4e5da190513 (diff)
Update all references to the core application to now point to the
gallery module. This type of mass update is prone to some small bugs.
Diffstat (limited to 'modules/gallery/libraries')
-rw-r--r--modules/gallery/libraries/Admin_View.php10
-rw-r--r--modules/gallery/libraries/I18n.php2
-rw-r--r--modules/gallery/libraries/Theme_View.php20
3 files changed, 16 insertions, 16 deletions
diff --git a/modules/gallery/libraries/Admin_View.php b/modules/gallery/libraries/Admin_View.php
index acc3f8ec..1f976871 100644
--- a/modules/gallery/libraries/Admin_View.php
+++ b/modules/gallery/libraries/Admin_View.php
@@ -29,15 +29,15 @@ class Admin_View_Core extends View {
* @return void
*/
public function __construct($name) {
- $theme_name = module::get_var("core", "active_site_theme");
+ $theme_name = module::get_var("gallery", "active_site_theme");
if (!file_exists("themes/$theme_name")) {
- module::set_var("core", "active_site_theme", "admin_default");
+ module::set_var("gallery", "active_site_theme", "admin_default");
theme::load_themes();
Kohana::log("error", "Unable to locate theme '$theme_name', switching to default theme.");
}
parent::__construct($name);
- $this->theme_name = module::get_var("core", "active_admin_theme");
+ $this->theme_name = module::get_var("gallery", "active_admin_theme");
if (user::active()->admin) {
$this->theme_name = Input::instance()->get("theme", $this->theme_name);
}
@@ -57,10 +57,10 @@ class Admin_View_Core extends View {
public function admin_menu() {
$menu = Menu::factory("root");
- core_menu::admin($menu, $this);
+ gallery_menu::admin($menu, $this);
foreach (module::active() as $module) {
- if ($module->name == "core") {
+ if ($module->name == "gallery") {
continue;
}
$class = "{$module->name}_menu";
diff --git a/modules/gallery/libraries/I18n.php b/modules/gallery/libraries/I18n.php
index c936be88..f2801169 100644
--- a/modules/gallery/libraries/I18n.php
+++ b/modules/gallery/libraries/I18n.php
@@ -62,7 +62,7 @@ class I18n_Core {
if (self::$_instance == NULL || isset($config)) {
$config = isset($config) ? $config : Kohana::config('locale');
if (empty($config['default_locale'])) {
- $config['default_locale'] = module::get_var('core', 'default_locale');
+ $config['default_locale'] = module::get_var('gallery', 'default_locale');
}
self::$_instance = new I18n_Core($config);
}
diff --git a/modules/gallery/libraries/Theme_View.php b/modules/gallery/libraries/Theme_View.php
index b5b97666..5fcc2943 100644
--- a/modules/gallery/libraries/Theme_View.php
+++ b/modules/gallery/libraries/Theme_View.php
@@ -30,15 +30,15 @@ class Theme_View_Core extends View {
* @return void
*/
public function __construct($name, $page_type) {
- $theme_name = module::get_var("core", "active_site_theme");
+ $theme_name = module::get_var("gallery", "active_site_theme");
if (!file_exists("themes/$theme_name")) {
- module::set_var("core", "active_site_theme", "default");
+ module::set_var("gallery", "active_site_theme", "default");
theme::load_themes();
Kohana::log("error", "Unable to locate theme '$theme_name', switching to default theme.");
}
parent::__construct($name);
- $this->theme_name = module::get_var("core", "active_site_theme");
+ $this->theme_name = module::get_var("gallery", "active_site_theme");
if (user::active()->admin) {
$this->theme_name = Input::instance()->get("theme", $this->theme_name);
}
@@ -64,7 +64,7 @@ class Theme_View_Core extends View {
public function thumb_proportion() {
// @TODO change the 200 to a theme supplied value when and if we come up with an
// API to allow the theme to set defaults.
- return module::get_var("core", "thumb_size", 200) / 200;
+ return module::get_var("gallery", "thumb_size", 200) / 200;
}
public function url($path, $absolute_url=false) {
@@ -91,10 +91,10 @@ class Theme_View_Core extends View {
public function site_menu() {
$menu = Menu::factory("root");
if ($this->page_type != "login") {
- core_menu::site($menu, $this);
+ gallery_menu::site($menu, $this);
foreach (module::active() as $module) {
- if ($module->name == "core") {
+ if ($module->name == "gallery") {
continue;
}
$class = "{$module->name}_menu";
@@ -109,10 +109,10 @@ class Theme_View_Core extends View {
public function album_menu() {
$menu = Menu::factory("root");
- core_menu::album($menu, $this);
+ gallery_menu::album($menu, $this);
foreach (module::active() as $module) {
- if ($module->name == "core") {
+ if ($module->name == "gallery") {
continue;
}
$class = "{$module->name}_menu";
@@ -126,10 +126,10 @@ class Theme_View_Core extends View {
public function photo_menu() {
$menu = Menu::factory("root");
- core_menu::photo($menu, $this);
+ gallery_menu::photo($menu, $this);
foreach (module::active() as $module) {
- if ($module->name == "core") {
+ if ($module->name == "gallery") {
continue;
}
$class = "{$module->name}_menu";