Changeset 9 for trunk/class/Messages.php
- Timestamp:
- Jun 14, 2012, 12:04:49 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/class/Messages.php
r7 r9 20 20 21 21 //returns actual page 22 public function WhichPage() { 23 return 'home'; 22 public function WhichPage($Pages) { 23 foreach($Pages as $Key => $Page ) 24 { 25 if ( isset($_GET[$Page->GetKey()]) ) { 26 return $Page->GetKey(); 27 } 28 } 29 if ($_GET == array()) return 'home'; 30 return 'notfound'; 24 31 } 25 32 //returns
Note:
See TracChangeset
for help on using the changeset viewer.