comparison flag.php @ 134:b6b4a58c7625

Using .inc.php rather than just .inc for include files.
author Tom Fredrik Blenning <bfg@bfgconsult.no>
date Sun, 22 Jan 2023 19:22:00 +0100
parents 16c3ee204330
children
comparison
equal deleted inserted replaced
133:00255ca89459 134:b6b4a58c7625
1 <?php 1 <?php
2 /** 2 /**
3 * @file 3 * @file
4 * Displays a flag, in an active or disabled state, depending on parameters 4 * Displays a flag, in an active or disabled state, depending on parameters
5 */ 5 */
6 include_once 'constants.inc'; 6 include_once 'constants.inc.php';
7 include_once 'CacheTimeCheck.inc'; 7 include_once 'CacheTimeCheck.inc.php';
8 8
9 /// @cond 9 /// @cond
10 $scriptCache = ScriptIncludeCache::instance(__FILE__); 10 $scriptCache = ScriptIncludeCache::instance(__FILE__);
11 $scriptCache->includeOnce('Flag.inc'); 11 $scriptCache->includeOnce('Flag.inc.php');
12 12
13 try { 13 try {
14 $flag = new Flag($scriptCache); 14 $flag = new Flag($scriptCache);
15 $flag->display(); 15 $flag->display();
16 } 16 }