Skip to content

Commit

Permalink
Use __DIR__.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Mar 17, 2012
1 parent fcd5289 commit c7a784a
Show file tree
Hide file tree
Showing 1,288 changed files with 1,985 additions and 1,985 deletions.
2 changes: 1 addition & 1 deletion agora/ban.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* did not receive this file, see http://www.horde.org/licenses/gpl.
*/

require_once dirname(__FILE__) . '/lib/Application.php';
require_once __DIR__ . '/lib/Application.php';
Horde_Registry::appInit('agora');

/* Make sure we have a forum id. */
Expand Down
2 changes: 1 addition & 1 deletion agora/deleteforum.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @author Marko Djukic <[email protected]>
*/

require_once dirname(__FILE__) . '/lib/Application.php';
require_once __DIR__ . '/lib/Application.php';
Horde_Registry::appInit('agora');

/* Set up the forums object. */
Expand Down
2 changes: 1 addition & 1 deletion agora/editforum.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @author Marko Djukic <[email protected]>
*/

require_once dirname(__FILE__) . '/lib/Application.php';
require_once __DIR__ . '/lib/Application.php';
Horde_Registry::appInit('agora');

/* Set up the forums object. */
Expand Down
2 changes: 1 addition & 1 deletion agora/forums.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @author Marko Djukic <[email protected]>
*/

require_once dirname(__FILE__) . '/lib/Application.php';
require_once __DIR__ . '/lib/Application.php';
Horde_Registry::appInit('agora');

/* Set up the forums object. */
Expand Down
2 changes: 1 addition & 1 deletion agora/index.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php

require dirname(__FILE__) . '/forums.php';
require __DIR__ . '/forums.php';
2 changes: 1 addition & 1 deletion agora/lib/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

/* Determine the base directories. */
if (!defined('AGORA_BASE')) {
define('AGORA_BASE', dirname(__FILE__) . '/..');
define('AGORA_BASE', __DIR__ . '/..');
}

if (!defined('HORDE_BASE')) {
Expand Down
2 changes: 1 addition & 1 deletion agora/messages/abuse.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* did not receive this file, see http://www.horde.org/licenses/gpl.
*/

require_once dirname(__FILE__) . '/../lib/Application.php';
require_once __DIR__ . '/../lib/Application.php';
Horde_Registry::appInit('agora');

/* Set up the messages object. */
Expand Down
2 changes: 1 addition & 1 deletion agora/messages/delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @author Marko Djukic <[email protected]>
*/

require_once dirname(__FILE__) . '/../lib/Application.php';
require_once __DIR__ . '/../lib/Application.php';
Horde_Registry::appInit('agora');

/* Set up the messages object. */
Expand Down
2 changes: 1 addition & 1 deletion agora/messages/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

/* TODO total message count doesn't increase in forum and threads view
* (cache problem) */
require_once dirname(__FILE__) . '/../lib/Application.php';
require_once __DIR__ . '/../lib/Application.php';
Horde_Registry::appInit('agora');

list($forum_id, $message_id, $scope) = Agora::getAgoraId();
Expand Down
2 changes: 1 addition & 1 deletion agora/messages/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @author Marko Djukic <[email protected]>
*/

require_once dirname(__FILE__) . '/../lib/Application.php';
require_once __DIR__ . '/../lib/Application.php';
Horde_Registry::appInit('agora');

/* Set up the messages object. */
Expand Down
2 changes: 1 addition & 1 deletion agora/messages/lock.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @author Marko Djukic <[email protected]>
*/

require_once dirname(__FILE__) . '/../lib/Application.php';
require_once __DIR__ . '/../lib/Application.php';
Horde_Registry::appInit('agora');

/* Set up the messages object. */
Expand Down
2 changes: 1 addition & 1 deletion agora/messages/merge.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* did not receive this file, see http://www.horde.org/licenses/gpl.
*/

require_once dirname(__FILE__) . '/../lib/Application.php';
require_once __DIR__ . '/../lib/Application.php';
Horde_Registry::appInit('agora');

/* Set up the messages object. */
Expand Down
2 changes: 1 addition & 1 deletion agora/messages/move.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* did not receive this file, see http://www.horde.org/licenses/gpl.
*/

require_once dirname(__FILE__) . '/../lib/Application.php';
require_once __DIR__ . '/../lib/Application.php';
Horde_Registry::appInit('agora');

/* Set up the messages object. */
Expand Down
2 changes: 1 addition & 1 deletion agora/messages/split.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* did not receive this file, see http://www.horde.org/licenses/gpl.
*/

require_once dirname(__FILE__) . '/../lib/Application.php';
require_once __DIR__ . '/../lib/Application.php';
Horde_Registry::appInit('agora');

/* Set up the messages object. */
Expand Down
2 changes: 1 addition & 1 deletion agora/moderate.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* did not receive this file, see http://www.horde.org/licenses/gpl.
*/

require_once dirname(__FILE__) . '/lib/Application.php';
require_once __DIR__ . '/lib/Application.php';
Horde_Registry::appInit('agora');

/* Set up the messages object. */
Expand Down
2 changes: 1 addition & 1 deletion agora/moderators.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @author Marko Djukic <[email protected]>
*/

require_once dirname(__FILE__) . '/lib/Application.php';
require_once __DIR__ . '/lib/Application.php';
Horde_Registry::appInit('agora');

if (!$registry->isAdmin()) {
Expand Down
2 changes: 1 addition & 1 deletion agora/owner.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @author Duck <[email protected]>
*/

require_once dirname(__FILE__) . '/lib/Application.php';
require_once __DIR__ . '/lib/Application.php';
Horde_Registry::appInit('agora');

/* Default to agora and current user if is not an admin. */
Expand Down
2 changes: 1 addition & 1 deletion agora/rss/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @author Duck <[email protected]>
*/

require_once dirname(__FILE__) . '/../lib/Application.php';
require_once __DIR__ . '/../lib/Application.php';
Horde_Registry::appInit('agora', array('authentication' => 'none'));

// Show a specific scope?
Expand Down
2 changes: 1 addition & 1 deletion agora/rss/messages.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @author Duck <[email protected]>
*/

require_once dirname(__FILE__) . '/../lib/Application.php';
require_once __DIR__ . '/../lib/Application.php';
Horde_Registry::appInit('agora', array('authentication' => 'none'));

// Show a specific scope?
Expand Down
2 changes: 1 addition & 1 deletion agora/rss/threads.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @author Duck <[email protected]>
*/

require_once dirname(__FILE__) . '/../lib/Application.php';
require_once __DIR__ . '/../lib/Application.php';
Horde_Registry::appInit('agora', array('authentication' => 'none'));

// Detect forum id
Expand Down
2 changes: 1 addition & 1 deletion agora/scripts/phorum2agora.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* TODO: Moderation, attachments, ID swaping
*/

require_once dirname(__FILE__) . '/../lib/Application.php';
require_once __DIR__ . '/../lib/Application.php';
Horde_Registry::appInit('agora', array('cli' => true));

/* Open Agora database. */
Expand Down
2 changes: 1 addition & 1 deletion agora/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @author Jason Felice <[email protected]>
*/

require_once dirname(__FILE__) . '/lib/Application.php';
require_once __DIR__ . '/lib/Application.php';
Horde_Registry::appInit('agora');

/* Set up the forums object. */
Expand Down
2 changes: 1 addition & 1 deletion agora/threads.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @author Marko Djukic <[email protected]>
*/

require_once dirname(__FILE__) . '/lib/Application.php';
require_once __DIR__ . '/lib/Application.php';
Horde_Registry::appInit('agora');

/* Make sure we have a forum id. */
Expand Down
2 changes: 1 addition & 1 deletion agora/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @author Marko Djukic <[email protected]>
*/

require_once dirname(__FILE__) . '/lib/Application.php';
require_once __DIR__ . '/lib/Application.php';
Horde_Registry::appInit('agora');

$action_id = Horde_Util::getFormData('action_id', 'download');
Expand Down
4 changes: 2 additions & 2 deletions ansel/bin/ansel
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
*
* @author Michael J. Rubinsky <[email protected]>
*/
if (file_exists(dirname(__FILE__) . '/../../ansel/lib/Application.php')) {
$baseDir = dirname(__FILE__) . '/../';
if (file_exists(__DIR__ . '/../../ansel/lib/Application.php')) {
$baseDir = __DIR__ . '/../';
} else {
require_once 'PEAR/Config.php';
$baseDir = PEAR_Config::singleton()
Expand Down
4 changes: 2 additions & 2 deletions ansel/bin/ansel-convert-sql-shares-to-sqlng
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
* the NG driver at a later time.
*/

if (file_exists(dirname(__FILE__) . '/../../ansel/lib/Application.php')) {
$baseDir = dirname(__FILE__) . '/../';
if (file_exists(__DIR__ . '/../../ansel/lib/Application.php')) {
$baseDir = __DIR__ . '/../';
} else {
require_once 'PEAR/Config.php';
$baseDir = PEAR_Config::singleton()
Expand Down
4 changes: 2 additions & 2 deletions ansel/bin/ansel-exif-to-tags
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
*
* @author Michael J. Rubinsky <[email protected]>
*/
if (file_exists(dirname(__FILE__) . '/../../ansel/lib/Application.php')) {
$baseDir = dirname(__FILE__) . '/../';
if (file_exists(__DIR__ . '/../../ansel/lib/Application.php')) {
$baseDir = __DIR__ . '/../';
} else {
require_once 'PEAR/Config.php';
$baseDir = PEAR_Config::singleton()
Expand Down
4 changes: 2 additions & 2 deletions ansel/bin/ansel-garbage-collection
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
* @pacakge Ansel
*/

if (file_exists(dirname(__FILE__) . '/../../ansel/lib/Application.php')) {
$baseDir = dirname(__FILE__) . '/../';
if (file_exists(__DIR__ . '/../../ansel/lib/Application.php')) {
$baseDir = __DIR__ . '/../';
} else {
require_once 'PEAR/Config.php';
$baseDir = PEAR_Config::singleton()
Expand Down
2 changes: 1 addition & 1 deletion ansel/browse.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* did not receive this file, see http://www.horde.org/licenses/gpl.
*/

require_once dirname(__FILE__) . '/lib/Application.php';
require_once __DIR__ . '/lib/Application.php';
Horde_Registry::appInit('ansel');

$layout = new Horde_Core_Block_Layout_View(
Expand Down
2 changes: 1 addition & 1 deletion ansel/browse_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* did not receive this file, see http://www.horde.org/licenses/gpl
*/

require_once dirname(__FILE__) . '/lib/Application.php';
require_once __DIR__ . '/lib/Application.php';
Horde_Registry::appInit('ansel');

$blocks = $injector->getInstance('Horde_Core_Factory_BlockCollection')->create(array('ansel'), 'myansel_layout');
Expand Down
2 changes: 1 addition & 1 deletion ansel/disclamer.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @author Jan Zagar <[email protected]>
*/

require_once dirname(__FILE__) . '/lib/Application.php';
require_once __DIR__ . '/lib/Application.php';
Horde_Registry::appInit('ansel');

$vars = Horde_Variables::getDefaultVariables();
Expand Down
2 changes: 1 addition & 1 deletion ansel/edit_dates.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @author Michael J. Rubinsky <[email protected]>
*/

require_once dirname(__FILE__) . '/lib/Application.php';
require_once __DIR__ . '/lib/Application.php';
Horde_Registry::appInit('ansel');

$images = Horde_Util::getFormData('image', array());
Expand Down
2 changes: 1 addition & 1 deletion ansel/faces/claim.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @author Duck <[email protected]>
*/

require_once dirname(__FILE__) . '/../lib/Application.php';
require_once __DIR__ . '/../lib/Application.php';
Horde_Registry::appInit('ansel');

$faces = $GLOBALS['injector']->getInstance('Ansel_Faces');
Expand Down
2 changes: 1 addition & 1 deletion ansel/faces/custom.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @author Duck <[email protected]>
*/

require_once dirname(__FILE__) . '/../lib/Application.php';
require_once __DIR__ . '/../lib/Application.php';
Horde_Registry::appInit('ansel');

$image_id = (int)Horde_Util::getFormData('image');
Expand Down
2 changes: 1 addition & 1 deletion ansel/faces/face.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*
* @author Duck <[email protected]>
*/
require_once dirname(__FILE__) . '/../lib/Application.php';
require_once __DIR__ . '/../lib/Application.php';
Horde_Registry::appInit('ansel');

$faces = $GLOBALS['injector']->getInstance('Ansel_Faces');
Expand Down
2 changes: 1 addition & 1 deletion ansel/faces/gallery.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* @author Duck <[email protected]>
*/

require_once dirname(__FILE__) . '/../lib/Application.php';
require_once __DIR__ . '/../lib/Application.php';
Horde_Registry::appInit('ansel');

$gallery_id = (int)Horde_Util::getFormData('gallery');
Expand Down
2 changes: 1 addition & 1 deletion ansel/faces/image.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @author Duck <[email protected]>
*/

require_once dirname(__FILE__) . '/../lib/Application.php';
require_once __DIR__ . '/../lib/Application.php';
Horde_Registry::appInit('ansel');

$faces = $GLOBALS['injector']->getInstance('Ansel_Faces');
Expand Down
2 changes: 1 addition & 1 deletion ansel/faces/img.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @author Duck <[email protected]>
*/

require_once dirname(__FILE__) . '/../lib/Application.php';
require_once __DIR__ . '/../lib/Application.php';
Horde_Registry::appInit('ansel');

$face_id = Horde_Util::getFormData('face');
Expand Down
2 changes: 1 addition & 1 deletion ansel/faces/name.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @author Duck <[email protected]>
*/

require_once dirname(__FILE__) . '/../lib/Application.php';
require_once __DIR__ . '/../lib/Application.php';
Horde_Registry::appInit('ansel');

$image_id = (int)Horde_Util::getFormData('image');
Expand Down
2 changes: 1 addition & 1 deletion ansel/faces/report.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @author Duck <[email protected]>
*/

require_once dirname(__FILE__) . '/../lib/Application.php';
require_once __DIR__ . '/../lib/Application.php';
Horde_Registry::appInit('ansel');

$face_id = Horde_Util::getFormData('face');
Expand Down
2 changes: 1 addition & 1 deletion ansel/faces/savecustom.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @author Duck <[email protected]>
*/

require_once dirname(__FILE__) . '/../lib/Application.php';
require_once __DIR__ . '/../lib/Application.php';
Horde_Registry::appInit('ansel');

$image_id = (int)Horde_Util::getFormData('image_id');
Expand Down
2 changes: 1 addition & 1 deletion ansel/faces/search/img.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @author Duck <[email protected]>
*/

require_once dirname(__FILE__) . '/../../lib/Application.php';
require_once __DIR__ . '/../../lib/Application.php';
Horde_Registry::appInit('ansel');

$thumb = Horde_Util::getGet('thumb');
Expand Down
2 changes: 1 addition & 1 deletion ansel/faces/search/tabs.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @author Duck <[email protected]>
*/

require_once dirname(__FILE__) . '/../../lib/Application.php';
require_once __DIR__ . '/../../lib/Application.php';
Horde_Registry::appInit('ansel');

$faces = $GLOBALS['injector']->getInstance('Ansel_Faces');
Expand Down
2 changes: 1 addition & 1 deletion ansel/gallery.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @package Ansel
*/

require_once dirname(__FILE__) . '/lib/Application.php';
require_once __DIR__ . '/lib/Application.php';
Horde_Registry::appInit('ansel');

// Redirect to the gallery list if no action has been requested.
Expand Down
Loading

0 comments on commit c7a784a

Please sign in to comment.