- Timestamp:
- 11/27/2011 09:32:32 PM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WordPress/plugin/transposh/wp/transposh_widget.php
r681 r683 164 164 foreach ($activewidgets as $key => $v) { 165 165 $class = $this->load_widget($key); 166 $class::tp_widget_css($key, $this->transposh->transposh_plugin_dir, $this->transposh->transposh_plugin_url); 166 if (class_exists($class)) 167 $class::tp_widget_css($key, $this->transposh->transposh_plugin_dir, $this->transposh->transposh_plugin_url); 167 168 } 168 169 logger('Added transposh_widget_css', 4); … … 184 185 foreach ($activewidgets as $key => $v) { 185 186 $class = $this->load_widget($key); 186 $class::tp_widget_js($key, $this->transposh->transposh_plugin_dir, $this->transposh->transposh_plugin_url); 187 if (class_exists($class)) 188 $class::tp_widget_js($key, $this->transposh->transposh_plugin_dir, $this->transposh->transposh_plugin_url); 187 189 } 188 190 logger('Added transposh_widget_js', 4); … … 242 244 // we load the class needed and get its base name for later 243 245 $class = $this->load_widget($instance['widget_file']); 246 if (!class_exists($class)) { 247 echo __('Transposh subwidget was not loaded correctly').": $class"; 248 } 244 249 245 250 $clean_page = $this->transposh->get_clean_url();
Note: See TracChangeset
for help on using the changeset viewer.
