~sense/ubuntu-wanted/drupal6-migration

« back to all changes in this revision

Viewing changes to module/wanted/view.php

  • Committer: Sense Hofstede
  • Date: 2009-03-22 12:38:25 UTC
  • mfrom: (15.1.11 qevel)
  • Revision ID: sense@qense.nl-20090322123825-kxopq3eto0s5o968
* Skill overview page added
* Pagination now works (LP:332941)
* Skill lists are now properly ordered(LP:332439)
* Some too generic class names were adapted to prevent name collision in case another module uses the same name (Thanks to Sayak Banerjee for finding this one)
* The usual typos, small problems and error were solved

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
require_once "views/view.functions.php";
25
25
 
26
 
abstract class View extends Observable
 
26
abstract class View extends WObservable
27
27
{
28
28
        /**
29
29
     * Arbitraty information for the view
117
117
                ob_start();
118
118
                
119
119
                // Select and include the right template part
120
 
                include "themes/wanted/" . $path . $template . "_" . $prefix . ".php";
 
120
                if($prefix == null) {
 
121
                        include "themes/wanted/" . $path . $template . ".php";
 
122
                } else {
 
123
                        include "themes/wanted/" . $path . $template . "_" . $prefix . ".php";
 
124
                }
121
125
                
122
126
                $content = ob_get_contents();
123
127
                ob_end_clean();
125
129
                return $content;
126
130
        }
127
131
}
128
 
?>
 
 
b'\\ No newline at end of file'
 
132
?>